diff --git a/components/convenience/conveniencecomponent.cpp b/components/convenience/conveniencecomponent.cpp index 0f32a63fc..8c7632fc7 100644 --- a/components/convenience/conveniencecomponent.cpp +++ b/components/convenience/conveniencecomponent.cpp @@ -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", ¯os)) builder->AddExpression("macros", OperatorPlus, macros);