diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-08-20 13:03:26 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-08-20 13:03:26 +0000 |
commit | 9b2281f8de84e730910342d40b12e37886203087 (patch) | |
tree | 1f7ddfc97f25c7a532ed78446f5ef7f743645e5e /tools | |
parent | e03627a05c5ebf89cd078692c06ea237a75b95e2 (diff) | |
parent | 885b37c80ecdae308289cc2e5c2a29dc66710487 (diff) |
Merge "Pass ServiceNetMap to services"
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/yaml-validate.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/yaml-validate.py b/tools/yaml-validate.py index c93c84bc..2a6c4b3b 100755 --- a/tools/yaml-validate.py +++ b/tools/yaml-validate.py @@ -39,6 +39,13 @@ def validate_service(filename, tpl): print('ERROR: service_name should match file name for service: %s.' % filename) return 1 + if 'parameters' in tpl: + required_params = ['EndpointMap', 'ServiceNetMap'] + for param in required_params: + if param not in tpl['parameters']: + print('ERROR: parameter %s is required for %s.' + % (param, filename)) + return 1 return 0 |