mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 23:24:09 +02:00
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()));
|
checksums->Set("host_id", GetObjectIdentifier(service->GetHost()));
|
||||||
attributes->Set("display_name", service->GetDisplayName());
|
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();
|
groups = service->GetGroups();
|
||||||
getGroup = &::GetObjectByName<ServiceGroup>;
|
getGroup = &::GetObjectByName<ServiceGroup>;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user