mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
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)
|
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))
|
if (service->Get("macros", ¯os))
|
||||||
builder->AddExpression("macros", OperatorPlus, macros);
|
builder->AddExpression("macros", OperatorPlus, macros);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user