mirror of https://github.com/Icinga/icinga2.git
Bugfix: %require didn't work if parent type had a validator for the same attribute.
This commit is contained in:
parent
671eb0110f
commit
07b50ecce8
|
@ -147,9 +147,12 @@ void ConfigType::ValidateDictionary(const Dictionary::Ptr& dictionary,
|
|||
if (subRuleList)
|
||||
subRuleLists.push_back(subRuleList);
|
||||
|
||||
if (overallResult == ValidationOK)
|
||||
continue;
|
||||
|
||||
if (result == ValidationOK) {
|
||||
overallResult = result;
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (result == ValidationInvalidType)
|
||||
|
|
Loading…
Reference in New Issue