mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-25 16:06:43 +00:00
Make project start and stop error handling more resilient, and improve message text.
This commit is contained in:
committed by
Matt Clay
parent
ecb05b03d4
commit
b01af0d747
@@ -655,7 +655,7 @@ class ContainerManager(DockerBaseClass):
|
||||
detached=detached,
|
||||
remove_orphans=self.remove_orphans)
|
||||
except Exception as exc:
|
||||
self.client.fail("Error bring %s up - %s" % (self.project.name, str(exc)))
|
||||
self.client.fail("Error starting project - %s" % str(exc))
|
||||
|
||||
if self.stopped:
|
||||
result.update(self.cmd_stop(service_names))
|
||||
@@ -804,7 +804,7 @@ class ContainerManager(DockerBaseClass):
|
||||
try:
|
||||
self.project.down(image_type, self.remove_volumes, self.remove_orphans)
|
||||
except Exception as exc:
|
||||
self.client.fail("Error bringing %s down - %s" % (self.project.name, str(exc)))
|
||||
self.client.fail("Error stopping project - %s" % str(exc))
|
||||
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user