mirror of https://github.com/Icinga/icinga2.git
parent
bfcf1b3eb8
commit
f8f89cef6d
|
@ -71,10 +71,7 @@ void ApplyRule::AddRule(const String& sourceType, const String& targetType, cons
|
||||||
|
|
||||||
bool ApplyRule::EvaluateFilter(const Dictionary::Ptr& scope) const
|
bool ApplyRule::EvaluateFilter(const Dictionary::Ptr& scope) const
|
||||||
{
|
{
|
||||||
scope->Set("__parent", m_Scope);
|
return m_Filter->Evaluate(scope);
|
||||||
bool result = m_Filter->Evaluate(scope);
|
|
||||||
scope->Remove("__parent");
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ApplyRule::EvaluateRules(bool clear)
|
void ApplyRule::EvaluateRules(bool clear)
|
||||||
|
|
Loading…
Reference in New Issue