mirror of https://github.com/Icinga/icinga2.git
Fixed global macros.
This commit is contained in:
parent
530819d658
commit
a17c614d96
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue