Fix validator for dependency filters

fixes #7650
This commit is contained in:
Gunnar Beutner 2014-11-12 09:40:45 +01:00
parent 02c559eff9
commit b3aa2eb0c8
1 changed files with 1 additions and 1 deletions

View 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 " +