mirror of
https://github.com/docker/compose.git
synced 2025-07-29 16:44:20 +02:00
Fixes --exit-code-from
- tried to find the length and array index of a filter object Signed-off-by: Duncan Paterson <duncan@brainnwave.com>
This commit is contained in:
parent
90634533fc
commit
da78c2c1db
@ -944,9 +944,9 @@ class TopLevelCommand(object):
|
|||||||
|
|
||||||
exit_code = 0
|
exit_code = 0
|
||||||
if exit_value_from:
|
if exit_value_from:
|
||||||
candidates = filter(
|
candidates = list(filter(
|
||||||
lambda c: c.service == exit_value_from,
|
lambda c: c.service == exit_value_from,
|
||||||
attached_containers)
|
attached_containers))
|
||||||
if not candidates:
|
if not candidates:
|
||||||
log.error(
|
log.error(
|
||||||
'No containers matching the spec "{0}" '
|
'No containers matching the spec "{0}" '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user