mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
stdout failed for failing services
Signed-off-by: Collins Abitekaniza <abtcolns@gmail.com>
This commit is contained in:
parent
eedbb28d5e
commit
dbe3a6e9a9
@ -50,7 +50,11 @@ def parallel_execute_watch(events, writer, errors, results, msg, get_name):
|
||||
error_to_reraise = None
|
||||
for obj, result, exception in events:
|
||||
if exception is None:
|
||||
writer.write(msg, get_name(obj), 'done', green)
|
||||
if callable(getattr(obj, 'containers', None)) and not obj.containers():
|
||||
# If service has no containers started
|
||||
writer.write(msg, get_name(obj), 'failed', red)
|
||||
else:
|
||||
writer.write(msg, get_name(obj), 'done', green)
|
||||
results.append(result)
|
||||
elif isinstance(exception, ImageNotFound):
|
||||
# This is to bubble up ImageNotFound exceptions to the client so we
|
||||
|
Loading…
x
Reference in New Issue
Block a user