Clean up the new sysadm/services class just a bit more. Getting ready to add all the start/stop/restart API calls.

This commit is contained in:
Ken Moore
2016-08-29 16:09:30 -04:00
parent 0d4eb2c4f3
commit ce86331f1e
3 changed files with 13 additions and 10 deletions

View File

@@ -1020,6 +1020,9 @@ RestOutputStruct::ExitCode WebSocket::EvaluateSysadmServiceRequest(const QJsonVa
ok = true;
out->insert("services",services);
}
if(out->keys().isEmpty()){
if(ok){ out->insert("result","success"); }
else{ out->insert("error","error");
}
return (ok ? RestOutputStruct::OK : RestOutputStruct::BADREQUEST);
}