Don't send cluster config messages for objects with version 0

refs #9927
This commit is contained in:
Gunnar Beutner 2015-11-08 21:22:06 +01:00
parent f8399e45db
commit 4bb9beda19
1 changed files with 3 additions and 0 deletions

View File

@ -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");