Kaydet (Commit) 9799c2d6 authored tarafından Joel Martin's avatar Joel Martin

Fix Mount bind type sanity check

any() expects a single collection argument, not a list of arguments.
Signed-off-by: 's avatarJoel Martin <github@martintribe.org>
üst 23596460
......@@ -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.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment