mirror of https://github.com/Icinga/icinga2.git
Bugfixes for the 'convenience' component.
This commit is contained in:
parent
4ad1789e33
commit
0f471683cd
|
@ -125,7 +125,7 @@ void ConvenienceComponent::HostCommittedHandler(const ConfigItem::Ptr& item)
|
|||
|
||||
string parent;
|
||||
if (!service->GetProperty("service", &parent))
|
||||
parent = string(svcdesc);
|
||||
parent = svcname;
|
||||
|
||||
builder->AddParent(parent);
|
||||
|
||||
|
@ -161,6 +161,9 @@ void ConvenienceComponent::HostRemovedHandler(const ConfigItem::Ptr& item)
|
|||
|
||||
ConfigObject::Ptr host = item->GetConfigObject();
|
||||
|
||||
if (!host)
|
||||
return;
|
||||
|
||||
Dictionary::Ptr services;
|
||||
host->GetTag("convenience-services", &services);
|
||||
|
||||
|
|
Loading…
Reference in New Issue