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:
Duncan Paterson 2017-04-25 15:05:09 +01:00 committed by Joffrey F
parent 90634533fc
commit da78c2c1db
1 changed files with 2 additions and 2 deletions

View File

@ -944,9 +944,9 @@ class TopLevelCommand(object):
exit_code = 0
if exit_value_from:
candidates = filter(
candidates = list(filter(
lambda c: c.service == exit_value_from,
attached_containers)
attached_containers))
if not candidates:
log.error(
'No containers matching the spec "{0}" '