From 1fc0003aee1349608d94bfb59f31596ef9c647b5 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Sun, 27 Mar 2016 00:37:52 +0800 Subject: [PATCH] Fix the wrong refer self in kolla_docker.py Change-Id: Ia5bcfa7253fc5a471a089339c52883af05623068 Closes-Bug: #1562345 --- ansible/library/kolla_docker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/library/kolla_docker.py b/ansible/library/kolla_docker.py index 341d78bf68..3a22662884 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 )