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.
This commit is contained in:
parent
9d69e78f18
commit
c42d94edd1
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ def main():
|
||||||
try:
|
try:
|
||||||
manager = DockerLoginManager(module)
|
manager = DockerLoginManager(module)
|
||||||
manager.login()
|
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:
|
except Exception as e:
|
||||||
module.fail_json(msg="Module execution has failed due to an unexpected error", error=repr(e))
|
module.fail_json(msg="Module execution has failed due to an unexpected error", error=repr(e))
|
||||||
|
|
Loading…
Reference in a new issue