mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
Always update object authority, even w/o API feature
Regression from #7062 Thanks @nilmerg :)
This commit is contained in:
parent
e909302fd9
commit
5c3a9b77d7
@ -10,13 +10,14 @@ using namespace icinga;
|
|||||||
|
|
||||||
void ApiListener::UpdateObjectAuthority()
|
void ApiListener::UpdateObjectAuthority()
|
||||||
{
|
{
|
||||||
ApiListener::Ptr instance = ApiListener::GetInstance();
|
/* Always run this, even if there is no 'api' feature enabled. */
|
||||||
|
if (auto listener = ApiListener::GetInstance()) {
|
||||||
if (!instance)
|
Log(LogNotice, "ApiListener")
|
||||||
return;
|
<< "Updating object authority for objects at endpoint '" << listener->GetIdentity() << "'.";
|
||||||
|
} else {
|
||||||
Log(LogNotice, "ApiListener")
|
Log(LogNotice, "ApiListener")
|
||||||
<< "Updating object authority for objects at endpoint '" << instance->GetIdentity() << "'.";
|
<< "Updating object authority for local objects.";
|
||||||
|
}
|
||||||
|
|
||||||
Zone::Ptr my_zone = Zone::GetLocalZone();
|
Zone::Ptr my_zone = Zone::GetLocalZone();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user