mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Added more meaningful fail messages on Docker API
This commit is contained in:
@@ -153,6 +153,8 @@ class DockerLoginManager:
|
||||
reauth=self.reauth,
|
||||
dockercfg_path=self.dockercfg_path
|
||||
)
|
||||
except DockerAPIError as e:
|
||||
self.module.fail_json(msg="Docker API Error: %s" % e.explanation)
|
||||
except Exception as e:
|
||||
self.module.fail_json(msg="failed to login to the remote registry", error=repr(e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user