mirror of https://github.com/Icinga/icinga2.git
Fix update executions. Fix code indentation
This commit is contained in:
parent
a33560548c
commit
6a5deaf7d4
|
@ -981,14 +981,9 @@ Value ClusterEvents::UpdateExecutionsAPIHandler(const MessageOrigin::Ptr& origin
|
|||
return Empty;
|
||||
}
|
||||
|
||||
if (!params->Contains("executions")) {
|
||||
Log(LogNotice, "ClusterEvents")
|
||||
<< "Discarding 'update executions API handler' message for checkable '" << checkable->GetName()
|
||||
<< "' from '" << origin->FromClient->GetIdentity() << "': missing executions.";
|
||||
return Empty;
|
||||
}
|
||||
|
||||
Dictionary::Ptr executions = params->Get("executions");
|
||||
Dictionary::Ptr executions = checkable->GetExecutions();
|
||||
Dictionary::Ptr newExecutions = params->Get("executions");
|
||||
newExecutions->CopyTo(executions);
|
||||
checkable->SetExecutions(executions);
|
||||
|
||||
return Empty;
|
||||
|
|
Loading…
Reference in New Issue