mirror of https://github.com/Icinga/icinga2.git
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…
Reference in New Issue