Merge pull request #6928 from jangsutsr/6904_strengthen_attribute_check_for_tower_conf_validators

Strengthen attribute check for Tower configuration validations
This commit is contained in:
Aaron Tan
2017-07-12 13:30:44 -04:00
committed by GitHub
3 changed files with 8 additions and 2 deletions

View File

@@ -108,3 +108,5 @@ register_validate("category_a", validate_a)
register_validate("category_b", validate_b)
...
```
It should be noted that each validation function will be invoked in two places: when updating the category it's responsible for and when updating the general category `all`. Always keep this fact in mind and test both situations when developing new validation functions.