diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-24 04:11:16 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-24 04:11:16 +0000 |
commit | 0fffbe3c3c97560a97d943e9ec3d64f55b413462 (patch) | |
tree | 3d5cc8245fa6a9527f41a92343303fdb9543e573 /tools | |
parent | ad370ba063d4e5b97dc446b33abea44c61908cd1 (diff) | |
parent | 0fbc2ff4878912cfcbea959a76b08330e80d8dc4 (diff) |
Merge "Support configurable Zaqar backends"
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/yaml-validate.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/yaml-validate.py b/tools/yaml-validate.py index 438f196e..33d12eec 100755 --- a/tools/yaml-validate.py +++ b/tools/yaml-validate.py @@ -304,11 +304,13 @@ def validate_docker_service(filename, tpl): if 'docker_config' in role_data: docker_config = role_data['docker_config'] for _, step in docker_config.items(): + if not isinstance(step, dict): + # NOTE(mandre) this skips everything that is not a dict + # so we may ignore some containers definitions if they + # are in a map_merge for example + continue for _, container in step.items(): if not isinstance(container, dict): - # NOTE(mandre) this skips everything that is not a dict - # so we may ignore some containers definitions if they - # are in a map_merge for example continue command = container.get('command', '') if isinstance(command, list): |