Merge "Fix the wrong refer self in kolla_docker.py"
This commit is contained in:
commit
251b498c72
@ -662,14 +662,14 @@ def main():
|
|||||||
# TODO(SamYaple): Replace with required_if when Ansible 2.0 lands
|
# TODO(SamYaple): Replace with required_if when Ansible 2.0 lands
|
||||||
if (module.params.get('action') in ['pull_image', 'start_container']
|
if (module.params.get('action') in ['pull_image', 'start_container']
|
||||||
and not module.params.get('image')):
|
and not module.params.get('image')):
|
||||||
self.module.fail_json(
|
module.fail_json(
|
||||||
msg="missing required arguments: image",
|
msg="missing required arguments: image",
|
||||||
failed=True
|
failed=True
|
||||||
)
|
)
|
||||||
# TODO(SamYaple): Replace with required_if when Ansible 2.0 lands
|
# TODO(SamYaple): Replace with required_if when Ansible 2.0 lands
|
||||||
if (module.params.get('action') != 'pull_image'
|
if (module.params.get('action') != 'pull_image'
|
||||||
and not module.params.get('name')):
|
and not module.params.get('name')):
|
||||||
self.module.fail_json(
|
module.fail_json(
|
||||||
msg="missing required arguments: name",
|
msg="missing required arguments: name",
|
||||||
failed=True
|
failed=True
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user