mirror of https://github.com/Icinga/icinga2.git
parent
3d7c2c2270
commit
d3c0c1e42b
|
@ -54,7 +54,7 @@ bool Dependency::EvaluateApplyRuleInstance(const Checkable::Ptr& checkable, cons
|
|||
ConfigItemBuilder::Ptr builder = new ConfigItemBuilder(di);
|
||||
builder->SetType("Dependency");
|
||||
builder->SetName(name);
|
||||
builder->SetScope(frame.Locals);
|
||||
builder->SetScope(frame.Locals->ShallowClone());
|
||||
|
||||
Host::Ptr host;
|
||||
Service::Ptr service;
|
||||
|
|
|
@ -54,7 +54,7 @@ bool Notification::EvaluateApplyRuleInstance(const Checkable::Ptr& checkable, co
|
|||
ConfigItemBuilder::Ptr builder = new ConfigItemBuilder(di);
|
||||
builder->SetType("Notification");
|
||||
builder->SetName(name);
|
||||
builder->SetScope(frame.Locals);
|
||||
builder->SetScope(frame.Locals->ShallowClone());
|
||||
|
||||
Host::Ptr host;
|
||||
Service::Ptr service;
|
||||
|
|
|
@ -53,7 +53,7 @@ bool ScheduledDowntime::EvaluateApplyRuleInstance(const Checkable::Ptr& checkabl
|
|||
ConfigItemBuilder::Ptr builder = new ConfigItemBuilder(di);
|
||||
builder->SetType("ScheduledDowntime");
|
||||
builder->SetName(name);
|
||||
builder->SetScope(frame.Locals);
|
||||
builder->SetScope(frame.Locals->ShallowClone());
|
||||
|
||||
Host::Ptr host;
|
||||
Service::Ptr service;
|
||||
|
|
|
@ -52,7 +52,7 @@ bool Service::EvaluateApplyRuleInstance(const Host::Ptr& host, const String& nam
|
|||
ConfigItemBuilder::Ptr builder = new ConfigItemBuilder(di);
|
||||
builder->SetType("Service");
|
||||
builder->SetName(name);
|
||||
builder->SetScope(frame.Locals);
|
||||
builder->SetScope(frame.Locals->ShallowClone());
|
||||
|
||||
builder->AddExpression(new SetExpression(MakeIndexer(ScopeCurrent, "host_name"), OpSetLiteral, MakeLiteral(host->GetName()), di));
|
||||
|
||||
|
|
Loading…
Reference in New Issue