From 9799c2d69b593c5f5dce8ff44a477207dc118e46 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Fri, 2 Sep 2016 15:29:00 -0500 Subject: [PATCH] Fix Mount bind type sanity check any() expects a single collection argument, not a list of arguments. Signed-off-by: Joel Martin --- docker/types/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/types/services.py b/docker/types/services.py index 2c1a830c3b..8488d6e2bc 100644 --- a/docker/types/services.py +++ b/docker/types/services.py @@ -80,7 +80,7 @@ def __init__(self, target, source, type='volume', read_only=False, self['BindOptions'] = { 'Propagation': propagation } - if any(labels, driver_config, no_copy): + if any([labels, driver_config, no_copy]): raise errors.DockerError( 'Mount type is binding but volume options have been ' 'provided.'