mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Don't send cluster config messages for objects with version 0
refs #9927
This commit is contained in:
parent
f8399e45db
commit
4bb9beda19
@ -278,6 +278,9 @@ void ApiListener::UpdateConfigObject(const ConfigObject::Ptr& object, const Mess
|
||||
}
|
||||
}
|
||||
|
||||
if (object->GetPackage() != "_api" && object->GetVersion() == 0)
|
||||
return;
|
||||
|
||||
Dictionary::Ptr message = new Dictionary();
|
||||
message->Set("jsonrpc", "2.0");
|
||||
message->Set("method", "config::UpdateObject");
|
||||
|
Loading…
x
Reference in New Issue
Block a user