diff options
| author | Joel Martin <github@martintribe.org> | 2016-09-02 15:29:00 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2016-09-02 15:32:52 -0500 |
| commit | 9799c2d69b593c5f5dce8ff44a477207dc118e46 (patch) | |
| tree | d6e7c0d3b1283bf6023f9a362b947807015169ac | |
| parent | 235964607d200b57ea41383e54473c2976f4d730 (diff) | |
| download | docker-py-9799c2d69b593c5f5dce8ff44a477207dc118e46.tar.gz | |
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>
| -rw-r--r-- | docker/types/services.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/types/services.py b/docker/types/services.py index 2c1a830..8488d6e 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.' |
