mirror of https://github.com/Icinga/icinga2.git
Don't allow __local property for replicated objects.
This commit is contained in:
parent
639d2e5be0
commit
5e4a3eb181
|
@ -162,6 +162,9 @@ void ConfigRpcComponent::RemoteObjectCommittedHandler(const RequestMessage& requ
|
|||
else
|
||||
object->SetProperties(properties.GetDictionary());
|
||||
|
||||
if (object->IsLocal())
|
||||
throw invalid_argument("Replicated remote object is marked as local.");
|
||||
|
||||
object->Commit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue