Merge pull request #4759 from brainnwaveDuncan/master

Fixes --exit-code-from
This commit is contained in:
Joffrey F 2017-04-25 13:40:30 -07:00 committed by GitHub
commit 01776651e8
1 changed files with 2 additions and 2 deletions

View File

@ -941,9 +941,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}" '