Added more meaningful fail messages on Docker API

reviewable/pr18780/r1
Olaf Kilian 10 years ago
parent 30fa6e3ea4
commit 3bcb24e656

@ -153,6 +153,8 @@ class DockerLoginManager:
reauth=self.reauth, reauth=self.reauth,
dockercfg_path=self.dockercfg_path dockercfg_path=self.dockercfg_path
) )
except DockerAPIError as e:
self.module.fail_json(msg="Docker API Error: %s" % e.explanation)
except Exception as e: except Exception as e:
self.module.fail_json(msg="failed to login to the remote registry", error=repr(e)) self.module.fail_json(msg="failed to login to the remote registry", error=repr(e))

Loading…
Cancel
Save