mirror of https://github.com/Icinga/icinga2.git
Fix Service's name
This commit is contained in:
parent
037357aea5
commit
03a61347cd
|
@ -318,6 +318,9 @@ bool RedisWriter::PrepareObject(const ConfigObject::Ptr& object, Dictionary::Ptr
|
|||
checksums->Set("host_id", GetObjectIdentifier(service->GetHost()));
|
||||
attributes->Set("display_name", service->GetDisplayName());
|
||||
|
||||
// Overwrite name here, `object->name` is 'HostName!ServiceName' but we only want the name of the Service
|
||||
attributes->Set("name", service->GetShortName());
|
||||
|
||||
groups = service->GetGroups();
|
||||
getGroup = &::GetObjectByName<ServiceGroup>;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue