mirror of https://github.com/Icinga/icinga2.git
Fixed configrpc module.
This commit is contained in:
parent
3c821c75ef
commit
b54ebc56dc
|
@ -113,7 +113,7 @@ void ConfigRpcComponent::FetchObjectsHandler(const Endpoint::Ptr& sender)
|
||||||
if (!ShouldReplicateObject(object))
|
if (!ShouldReplicateObject(object))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
RequestMessage request = MakeObjectMessage(object, "config::ObjectCreated", true);
|
RequestMessage request = MakeObjectMessage(object, "config::ObjectCommitted", true);
|
||||||
|
|
||||||
EndpointManager::GetInstance()->SendUnicastMessage(m_ConfigRpcEndpoint, sender, request);
|
EndpointManager::GetInstance()->SendUnicastMessage(m_ConfigRpcEndpoint, sender, request);
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,7 @@ void ConfigRpcComponent::LocalObjectCommittedHandler(const ConfigObject::Ptr& ob
|
||||||
return;
|
return;
|
||||||
|
|
||||||
EndpointManager::GetInstance()->SendMulticastMessage(m_ConfigRpcEndpoint,
|
EndpointManager::GetInstance()->SendMulticastMessage(m_ConfigRpcEndpoint,
|
||||||
MakeObjectMessage(object, "config::ObjectCreated", true));
|
MakeObjectMessage(object, "config::ObjectCommitted", true));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigRpcComponent::LocalObjectRemovedHandler(const ConfigObject::Ptr& object)
|
void ConfigRpcComponent::LocalObjectRemovedHandler(const ConfigObject::Ptr& object)
|
||||||
|
|
Loading…
Reference in New Issue