Register service and notification objects.

This commit is contained in:
Gunnar Beutner 2013-08-30 15:09:42 +02:00
parent e8c61a578f
commit c194ad1ca3
2 changed files with 2 additions and 0 deletions

View File

@ -245,6 +245,7 @@ void Host::UpdateSlaveServices(void)
builder->AddExpressionList(svc_exprl);
ConfigItem::Ptr serviceItem = builder->Compile();
serviceItem->Register();
DynamicObject::Ptr dobj = serviceItem->Commit();
dobj->OnConfigLoaded();
}

View File

@ -193,6 +193,7 @@ void Service::UpdateSlaveNotifications(void)
builder->AddExpressionList(nfc_exprl);
ConfigItem::Ptr notificationItem = builder->Compile();
notificationItem->Register();
DynamicObject::Ptr dobj = notificationItem->Commit();
dobj->OnConfigLoaded();
}