mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-02 19:34:28 +02:00
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…
x
Reference in New Issue
Block a user