Skip to content

Commit fff71e9

Browse files
authored
Merge pull request #1180 from kanaka/patch-1
Fix Mount bind type sanity check
2 parents 2359646 + 9799c2d commit fff71e9

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)