aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-03-30 05:22:21 +0000
committerGerrit Code Review <review@openstack.org>2016-03-30 05:22:21 +0000
commit251b498c72f896a86672ea47394e672e309ccb96 (patch)
treef6fa1a229f7e8cecf17c1784dfbf04b86c0e9c97
parent882636c9ddf3fffef68eb35b2438968993ac1ed0 (diff)
parent1fc0003aee1349608d94bfb59f31596ef9c647b5 (diff)
downloadkolla-251b498c72f896a86672ea47394e672e309ccb96.tar.gz
kolla-251b498c72f896a86672ea47394e672e309ccb96.zip
Merge "Fix the wrong refer self in kolla_docker.py"
-rw-r--r--ansible/library/kolla_docker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ansible/library/kolla_docker.py b/ansible/library/kolla_docker.py
index a402029d7..ddb88f901 100644
--- a/ansible/library/kolla_docker.py
+++ b/ansible/library/kolla_docker.py
@@ -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
)