mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed: global name 'e' is not defined
This commit is contained in:
parent
3284359894
commit
3bfe9a7b50
1 changed files with 2 additions and 2 deletions
|
@ -1153,7 +1153,7 @@ class DockerManager(object):
|
||||||
email=self.module.params.get('email'),
|
email=self.module.params.get('email'),
|
||||||
registry=self.module.params.get('registry')
|
registry=self.module.params.get('registry')
|
||||||
)
|
)
|
||||||
except e:
|
except Exception as e:
|
||||||
self.module.fail_json(msg="failed to login to the remote registry, check your username/password.", error=repr(e))
|
self.module.fail_json(msg="failed to login to the remote registry, check your username/password.", error=repr(e))
|
||||||
try:
|
try:
|
||||||
last = None
|
last = None
|
||||||
|
@ -1169,7 +1169,7 @@ class DockerManager(object):
|
||||||
else:
|
else:
|
||||||
# Unrecognized status string.
|
# Unrecognized status string.
|
||||||
self.module.fail_json(msg="Unrecognized status from pull.", status=status)
|
self.module.fail_json(msg="Unrecognized status from pull.", status=status)
|
||||||
except e:
|
except Exception as e:
|
||||||
self.module.fail_json(msg="Failed to pull the specified image: %s" % resource, error=repr(e))
|
self.module.fail_json(msg="Failed to pull the specified image: %s" % resource, error=repr(e))
|
||||||
|
|
||||||
def create_containers(self, count=1):
|
def create_containers(self, count=1):
|
||||||
|
|
Loading…
Reference in a new issue