]> granicus.if.org Git - icinga2/commitdiff
Fix validator for dependency filters
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 12 Nov 2014 08:40:45 +0000 (09:40 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 12 Nov 2014 08:40:45 +0000 (09:40 +0100)
fixes #7650

lib/icinga/dependency.cpp

index 55fbcc9d56ff8a1b8b83f4ec424d992b5df49ff7..3cf854f150056b44a9bb7e21e591b4815189ff87 100644 (file)
@@ -205,7 +205,7 @@ TimePeriod::Ptr Dependency::GetPeriod(void) const
 
 void Dependency::ValidateFilters(const String& location, const Dictionary::Ptr& attrs)
 {
-       int sfilter = FilterArrayToInt(attrs->Get("state_filter"), 0);
+       int sfilter = FilterArrayToInt(attrs->Get("states"), 0);
 
        if (attrs->Get("parent_service_name") == Empty && (sfilter & ~(StateFilterUp | StateFilterDown)) != 0) {
                ConfigCompilerContext::GetInstance()->AddMessage(true, "Validation failed for " +