Fixed global macros.

This commit is contained in:
Gunnar Beutner 2012-07-13 11:40:57 +02:00
parent 530819d658
commit a17c614d96
1 changed files with 4 additions and 1 deletions

View File

@ -56,7 +56,10 @@ void ConvenienceComponent::HostAddedHandler(const ConfigItem::Ptr& item)
void ConvenienceComponent::CopyServiceAttributes(const ConfigObject::Ptr& host, const Dictionary::Ptr& service, const ConfigItemBuilder::Ptr& builder)
{
Dictionary::Ptr macros;
/* TODO: we only need to copy macros if this is an inline definition,
* i.e. host->GetProperties() != service, however for now we just
* copy them anyway. */
Dictionary::Ptr macros;
if (service->Get("macros", &macros))
builder->AddExpression("macros", OperatorPlus, macros);