diff --git a/docker/types/services.py b/docker/types/services.py index 2c1a830c..8488d6e2 100644 --- a/docker/types/services.py +++ b/docker/types/services.py @@ -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.'