mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Bugfix: Object source wasn't properly set.
This commit is contained in:
parent
6d53e491de
commit
11fb9c541e
@ -215,14 +215,14 @@ void CIBSyncComponent::RemoteObjectUpdateHandler(const Endpoint::Ptr& sender, co
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (object->GetSource().IsEmpty())
|
||||||
|
object->SetSource(sender->GetIdentity());
|
||||||
|
|
||||||
object->Register();
|
object->Register();
|
||||||
} else {
|
} else {
|
||||||
if (object->IsLocal())
|
if (object->IsLocal())
|
||||||
throw_exception(invalid_argument("Replicated remote object is marked as local."));
|
throw_exception(invalid_argument("Replicated remote object is marked as local."));
|
||||||
|
|
||||||
if (object->GetSource().IsEmpty())
|
|
||||||
object->SetSource(sender->GetIdentity());
|
|
||||||
|
|
||||||
// TODO: disallow config updates depending on endpoint config
|
// TODO: disallow config updates depending on endpoint config
|
||||||
|
|
||||||
object->ApplyUpdate(update, Attribute_All);
|
object->ApplyUpdate(update, Attribute_All);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user