Don't instantiate service objects for host templates.

This commit is contained in:
Gunnar Beutner 2012-07-06 15:52:13 +02:00
parent acf08b7a4e
commit de55b5d0d2
1 changed files with 5 additions and 0 deletions

View File

@ -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);