mirror of https://github.com/Icinga/icinga2.git
Use local zone for update executions
This commit is contained in:
parent
c6c1849106
commit
ac71cc67f8
|
@ -1115,12 +1115,7 @@ Value ClusterEvents::UpdateExecutionsAPIHandler(const MessageOrigin::Ptr& origin
|
|||
updateMessage->Set("method", "event::UpdateExecutions");
|
||||
updateMessage->Set("params", params);
|
||||
|
||||
Zone::Ptr localZone = Zone::GetLocalZone();
|
||||
Zone::Ptr parentZone = localZone->GetParent();
|
||||
|
||||
if (localZone != parentZone) {
|
||||
listener->RelayMessage(origin, parentZone, updateMessage, true);
|
||||
}
|
||||
listener->RelayMessage(origin, Zone::GetLocalZone(), updateMessage, true);
|
||||
|
||||
return Empty;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue