From c42d94edd1da674220ac8edd353787e4420d662a Mon Sep 17 00:00:00 2001 From: Olaf Kilian Date: Wed, 6 May 2015 22:33:31 +0200 Subject: [PATCH] Remove registry from exit_json because misleading docker-py is not returning the name of the registry if already logged in. It can differ from the registry specified by the user, which was return as registry. --- lib/ansible/modules/extras/cloud/docker/docker_login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/cloud/docker/docker_login.py b/lib/ansible/modules/extras/cloud/docker/docker_login.py index 09d9d59943..db8fa90632 100644 --- a/lib/ansible/modules/extras/cloud/docker/docker_login.py +++ b/lib/ansible/modules/extras/cloud/docker/docker_login.py @@ -229,7 +229,7 @@ def main(): try: manager = DockerLoginManager(module) manager.login() - module.exit_json(changed=manager.has_changed(), msg=manager.get_msg(), registry=manager.registry) + module.exit_json(changed=manager.has_changed(), msg=manager.get_msg()) except Exception as e: module.fail_json(msg="Module execution has failed due to an unexpected error", error=repr(e))