summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2016-09-02 15:29:00 -0500
committerJoel Martin <github@martintribe.org>2016-09-02 15:32:52 -0500
commit9799c2d69b593c5f5dce8ff44a477207dc118e46 (patch)
treed6e7c0d3b1283bf6023f9a362b947807015169ac
parent235964607d200b57ea41383e54473c2976f4d730 (diff)
downloaddocker-py-9799c2d69b593c5f5dce8ff44a477207dc118e46.tar.gz
Fix Mount bind type sanity check
any() expects a single collection argument, not a list of arguments. Signed-off-by: Joel Martin <github@martintribe.org>
-rw-r--r--docker/types/services.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/types/services.py b/docker/types/services.py
index 2c1a830..8488d6e 100644
--- a/docker/types/services.py
+++ b/docker/types/services.py
@@ -80,7 +80,7 @@ class Mount(dict):
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.'