From da78c2c1dba6f809aaa846f6690a2fa55b497f33 Mon Sep 17 00:00:00 2001 From: Duncan Paterson Date: Tue, 25 Apr 2017 15:05:09 +0100 Subject: [PATCH] Fixes --exit-code-from - tried to find the length and array index of a filter object Signed-off-by: Duncan Paterson --- compose/cli/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/cli/main.py b/compose/cli/main.py index 0fdf3c28a..9df3c82ad 100644 --- a/compose/cli/main.py +++ b/compose/cli/main.py @@ -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}" '