mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
For the same zone, call ApiListener::UpdateObjectAuthority() in icinga::Hello
after setting remote capabilities. They'll become important for teamwork in a zone.
This commit is contained in:
parent
a65f2d6b41
commit
18f810a1ea
@ -1794,6 +1794,10 @@ Value ApiListener::HelloAPIHandler(const MessageOrigin::Ptr& origin, const Dicti
|
||||
endpoint->SetIcingaVersion(nodeVersion);
|
||||
endpoint->SetCapabilities((double)params->Get("capabilities"));
|
||||
|
||||
if (endpoint->GetZone() == Zone::GetLocalZone()) {
|
||||
UpdateObjectAuthority();
|
||||
}
|
||||
|
||||
if (nodeVersion == 0u) {
|
||||
nodeVersion = 21200;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user