Skip to content
Snippets Groups Projects
Commit 251b498c authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Fix the wrong refer self in kolla_docker.py"

parents 882636c9 1fc0003a
No related branches found
No related tags found
No related merge requests found
......@@ -662,14 +662,14 @@ def main():
# TODO(SamYaple): Replace with required_if when Ansible 2.0 lands
if (module.params.get('action') in ['pull_image', 'start_container']
and not module.params.get('image')):
self.module.fail_json(
module.fail_json(
msg="missing required arguments: image",
failed=True
)
# TODO(SamYaple): Replace with required_if when Ansible 2.0 lands
if (module.params.get('action') != 'pull_image'
and not module.params.get('name')):
self.module.fail_json(
module.fail_json(
msg="missing required arguments: name",
failed=True
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment