X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=lib%2Ficinga%2Fnotification-apply.cpp;h=ed829f1e584507404d434fd6dddc29576e838b8c;hb=cfd775c9489806aeac4c8c4b7a6ec603713b258b;hp=c8ef7d788e2e7de7409b3f3a4bb383da0b0b94f0;hpb=aa38dde1fcdf88830870542229b8191dd5717c7b;p=icinga2 diff --git a/lib/icinga/notification-apply.cpp b/lib/icinga/notification-apply.cpp index c8ef7d788..ed829f1e5 100644 --- a/lib/icinga/notification-apply.cpp +++ b/lib/icinga/notification-apply.cpp @@ -42,7 +42,7 @@ void Notification::RegisterApplyRuleHandler(void) ApplyRule::RegisterType("Notification", targets); } -void Notification::EvaluateApplyRuleInstance(const Checkable::Ptr& checkable, const String& name, VMFrame& frame, const ApplyRule& rule) +void Notification::EvaluateApplyRuleInstance(const Checkable::Ptr& checkable, const String& name, ScriptFrame& frame, const ApplyRule& rule) { DebugInfo di = rule.GetDebugInfo(); @@ -86,7 +86,7 @@ bool Notification::EvaluateApplyRule(const Checkable::Ptr& checkable, const Appl Service::Ptr service; tie(host, service) = GetHostService(checkable); - VMFrame frame; + ScriptFrame frame; if (rule.GetScope()) rule.GetScope()->CopyTo(frame.Locals); frame.Locals->Set("host", host);