mirror of https://github.com/docker/docker-py.git
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>
This commit is contained in:
parent
235964607d
commit
9799c2d69b
|
|
@ -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.'
|
||||
|
|
|
|||
Loading…
Reference in New Issue