]> granicus.if.org Git - icinga2/commitdiff
Fix scoping rules for apply rules
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 30 Oct 2014 08:20:42 +0000 (09:20 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 30 Oct 2014 08:20:42 +0000 (09:20 +0100)
fixes #7503

lib/config/applyrule.cpp

index 737b47d7ca52ef7d0b63a09c64b145b1c21ca892..11870e70ed0a6b382c315cee46de3d41a5c8b724 100644 (file)
@@ -71,10 +71,7 @@ void ApplyRule::AddRule(const String& sourceType, const String& targetType, cons
 
 bool ApplyRule::EvaluateFilter(const Dictionary::Ptr& scope) const
 {
-       scope->Set("__parent", m_Scope);
-       bool result = m_Filter->Evaluate(scope);
-       scope->Remove("__parent");
-       return result;
+       return m_Filter->Evaluate(scope);
 }
 
 void ApplyRule::EvaluateRules(bool clear)