mirror of https://github.com/Icinga/icinga2.git
Don't instantiate service objects for host templates.
This commit is contained in:
parent
acf08b7a4e
commit
de55b5d0d2
|
@ -60,6 +60,11 @@ void ConvenienceComponent::HostCommittedHandler(const ConfigItem::Ptr& item)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ConfigObject::Ptr host = ConfigObject::GetObject("host", item->GetName());
|
ConfigObject::Ptr host = ConfigObject::GetObject("host", item->GetName());
|
||||||
|
|
||||||
|
/* ignore abstract host objects */
|
||||||
|
if (!host)
|
||||||
|
return;
|
||||||
|
|
||||||
Dictionary::Ptr oldServices;
|
Dictionary::Ptr oldServices;
|
||||||
host->GetTag("convenience-services", &oldServices);
|
host->GetTag("convenience-services", &oldServices);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue