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:
Joel Martin 2016-09-02 15:29:00 -05:00
parent 235964607d
commit 9799c2d69b
1 changed files with 1 additions and 1 deletions

View File

@ -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.'