summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-07-29 08:52:05 +0000
committerGerrit Code Review <review@openstack.org>2016-07-29 08:52:05 +0000
commit9aec3de5b842967cfa104ec5aebd359b71379c64 (patch)
tree44533abb637c92fa172377533e4fb3c1520cd73b /tools
parent1eeb7a806999a85a20dfc86dd465135a885da397 (diff)
parent7df649f59e3cb3d0b811b526b4fdb000337e01de (diff)
Merge "Convert service_name to underscore syntax"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/yaml-validate.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/yaml-validate.py b/tools/yaml-validate.py
index 34219eff..c93c84bc 100755
--- a/tools/yaml-validate.py
+++ b/tools/yaml-validate.py
@@ -33,8 +33,9 @@ def validate_service(filename, tpl):
print('ERROR: service_name is required in role_data for %s.'
% filename)
return 1
+ # service_name must match the filename, but with an underscore
if (role_data['service_name'] !=
- os.path.basename(filename).split('.')[0]):
+ os.path.basename(filename).split('.')[0].replace("-", "_")):
print('ERROR: service_name should match file name for service: %s.'
% filename)
return 1