mirror of https://github.com/Icinga/icinga2.git
Fix update execution
This commit is contained in:
parent
604b938ade
commit
cf1430c409
|
@ -88,9 +88,9 @@ static void SendEventExecuteCommand(const Dictionary::Ptr& params, long exitStat
|
||||||
executedParams->Set("start", start);
|
executedParams->Set("start", start);
|
||||||
executedParams->Set("end", end);
|
executedParams->Set("end", end);
|
||||||
|
|
||||||
ClusterEvents::ExecutedCommandAPIHandler(origin, executedParams);
|
if (origin->IsLocal()) {
|
||||||
|
ClusterEvents::ExecutedCommandAPIHandler(origin, executedParams);
|
||||||
if (!origin->IsLocal()) {
|
} else {
|
||||||
Dictionary::Ptr executedMessage = new Dictionary();
|
Dictionary::Ptr executedMessage = new Dictionary();
|
||||||
executedMessage->Set("jsonrpc", "2.0");
|
executedMessage->Set("jsonrpc", "2.0");
|
||||||
executedMessage->Set("method", "event::ExecutedCommand");
|
executedMessage->Set("method", "event::ExecutedCommand");
|
||||||
|
|
|
@ -1038,7 +1038,7 @@ Value ClusterEvents::ExecutedCommandAPIHandler(const MessageOrigin::Ptr& origin,
|
||||||
updateMessage->Set("method", "event::UpdateExecutions");
|
updateMessage->Set("method", "event::UpdateExecutions");
|
||||||
updateMessage->Set("params", updateParams);
|
updateMessage->Set("params", updateParams);
|
||||||
|
|
||||||
listener->RelayMessage(origin, checkable, updateMessage, true);
|
listener->RelayMessage(nullptr, checkable, updateMessage, true);
|
||||||
|
|
||||||
return Empty;
|
return Empty;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue