mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 08:34:20 +02:00
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…
x
Reference in New Issue
Block a user