Skip to content

Commit 9799c2d

Browse files
committed
Fix Mount bind type sanity check
any() expects a single collection argument, not a list of arguments. Signed-off-by: Joel Martin <[email protected]>
1 parent 2359646 commit 9799c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/types/services.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(self, target, source, type='volume', read_only=False,
8080
self['BindOptions'] = {
8181
'Propagation': propagation
8282
}
83-
if any(labels, driver_config, no_copy):
83+
if any([labels, driver_config, no_copy]):
8484
raise errors.DockerError(
8585
'Mount type is binding but volume options have been '
8686
'provided.'

0 commit comments

Comments
 (0)