Fix indentation

This commit is contained in:
Mattia Codato 2020-07-29 08:38:49 +02:00
parent bf07ada3df
commit 1e59810ddd
1 changed files with 10 additions and 10 deletions

View File

@ -957,8 +957,8 @@ Value ClusterEvents::ExecutedCommandAPIHandler(const MessageOrigin::Ptr& origin,
if (!endpoint) { if (!endpoint) {
Log(LogNotice, "ClusterEvents") Log(LogNotice, "ClusterEvents")
<< "Discarding 'update executions API handler' message from '" << origin->FromClient->GetIdentity() << "Discarding 'update executions API handler' message from '" << origin->FromClient->GetIdentity()
<< "': Invalid endpoint origin (client not allowed)."; << "': Invalid endpoint origin (client not allowed).";
return Empty; return Empty;
} }
@ -981,15 +981,15 @@ Value ClusterEvents::ExecutedCommandAPIHandler(const MessageOrigin::Ptr& origin,
if (origin->FromZone && !origin->FromZone->CanAccessObject(checkable)) { if (origin->FromZone && !origin->FromZone->CanAccessObject(checkable)) {
Log(LogNotice, "ClusterEvents") Log(LogNotice, "ClusterEvents")
<< "Discarding 'update executions API handler' message for checkable '" << checkable->GetName() << "Discarding 'update executions API handler' message for checkable '" << checkable->GetName()
<< "' from '" << origin->FromClient->GetIdentity() << "': Unauthorized access."; << "' from '" << origin->FromClient->GetIdentity() << "': Unauthorized access.";
return Empty; return Empty;
} }
if (!params->Contains("execution")) { if (!params->Contains("execution")) {
Log(LogNotice, "ClusterEvents") Log(LogNotice, "ClusterEvents")
<< "Discarding 'update executions API handler' message for checkable '" << checkable->GetName() << "Discarding 'update executions API handler' message for checkable '" << checkable->GetName()
<< "' from '" << origin->FromClient->GetIdentity() << "': Execution UUID not found."; << "' from '" << origin->FromClient->GetIdentity() << "': Execution UUID not found.";
return Empty; return Empty;
} }
String uuid = params->Get("execution"); String uuid = params->Get("execution");
@ -997,16 +997,16 @@ Value ClusterEvents::ExecutedCommandAPIHandler(const MessageOrigin::Ptr& origin,
Dictionary::Ptr executions = checkable->GetExecutions(); Dictionary::Ptr executions = checkable->GetExecutions();
if (!executions) { if (!executions) {
Log(LogNotice, "ClusterEvents") Log(LogNotice, "ClusterEvents")
<< "Discarding 'update executions API handler' message for checkable '" << checkable->GetName() << "Discarding 'update executions API handler' message for checkable '" << checkable->GetName()
<< "' from '" << origin->FromClient->GetIdentity() << "': No executions available."; << "' from '" << origin->FromClient->GetIdentity() << "': No executions available.";
return Empty; return Empty;
} }
Dictionary::Ptr execution = executions->Get(uuid); Dictionary::Ptr execution = executions->Get(uuid);
if (!execution) { if (!execution) {
Log(LogNotice, "ClusterEvents") Log(LogNotice, "ClusterEvents")
<< "Discarding 'update executions API handler' message for checkable '" << checkable->GetName() << "Discarding 'update executions API handler' message for checkable '" << checkable->GetName()
<< "' from '" << origin->FromClient->GetIdentity() << "': Execution '" << uuid << "' not found."; << "' from '" << origin->FromClient->GetIdentity() << "': Execution '" << uuid << "' not found.";
return Empty; return Empty;
} }