mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-06 21:34:28 +02:00
Fix runtime update of state not being published
This commit is contained in:
parent
07515d4446
commit
1566c4f9ac
@ -781,8 +781,9 @@ void RedisWriter::SendConfigUpdate(const ConfigObject::Ptr& object, bool runtime
|
|||||||
CreateConfigUpdate(object, typeName, hMSets, publishes, runtimeUpdate);
|
CreateConfigUpdate(object, typeName, hMSets, publishes, runtimeUpdate);
|
||||||
Checkable::Ptr checkable = dynamic_pointer_cast<Checkable>(object);
|
Checkable::Ptr checkable = dynamic_pointer_cast<Checkable>(object);
|
||||||
if (checkable) {
|
if (checkable) {
|
||||||
m_Rcon->FireAndForgetQuery({"HSET", m_PrefixStateObject + typeName,
|
String objectKey = GetObjectIdentifier(object);
|
||||||
GetObjectIdentifier(checkable), JsonEncode(SerializeState(checkable))});
|
m_Rcon->FireAndForgetQuery({"HSET", m_PrefixStateObject + typeName, objectKey, JsonEncode(SerializeState(checkable))});
|
||||||
|
publishes["icinga:config:update"].emplace_back("state:" + typeName + ":" + objectKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::vector<String> > transaction = {{"MULTI"}};
|
std::vector<std::vector<String> > transaction = {{"MULTI"}};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user