From: Gunnar Beutner Date: Sun, 8 Nov 2015 20:22:06 +0000 (+0100) Subject: Don't send cluster config messages for objects with version 0 X-Git-Tag: v2.4.0~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bb9beda19659825b709024a1c1fe298632252ec;p=icinga2 Don't send cluster config messages for objects with version 0 refs #9927 --- diff --git a/lib/remote/apilistener-configsync.cpp b/lib/remote/apilistener-configsync.cpp index 4d758986d..cdde40b02 100644 --- a/lib/remote/apilistener-configsync.cpp +++ b/lib/remote/apilistener-configsync.cpp @@ -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");