summaryrefslogtreecommitdiffstats
path: root/tools/yaml-validate.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/yaml-validate.py')
-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