mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
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
|
else
|
||||||
object->SetProperties(properties.GetDictionary());
|
object->SetProperties(properties.GetDictionary());
|
||||||
|
|
||||||
|
if (object->IsLocal())
|
||||||
|
throw invalid_argument("Replicated remote object is marked as local.");
|
||||||
|
|
||||||
object->Commit();
|
object->Commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user