mirror of
https://github.com/Icinga/icinga2.git
synced 2025-06-24 15:40:18 +02:00
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…
x
Reference in New Issue
Block a user