Bugfixes for the 'convenience' component.

This commit is contained in:
Gunnar Beutner 2012-07-08 11:37:15 +02:00
parent 4ad1789e33
commit 0f471683cd
1 changed files with 4 additions and 1 deletions

View File

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