diff options
| author | Yohan Graterol <yohangraterol92@gmail.com> | 2014-08-17 02:23:32 -0500 |
|---|---|---|
| committer | Yohan Graterol <yohangraterol92@gmail.com> | 2014-08-17 02:23:32 -0500 |
| commit | 75c7931f3da2bb9407d113048af16ec46d2a66f4 (patch) | |
| tree | cb703c405af882586ea0d187eeac6153891ea816 /docker | |
| parent | 698732636c2fa0f82e1042362a53a9064e62f77e (diff) | |
| download | docker-py-75c7931f3da2bb9407d113048af16ec46d2a66f4.tar.gz | |
Added validation for volumes parameter - Issue #276
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/client.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docker/client.py b/docker/client.py index 1ff5a25..70055a7 100644 --- a/docker/client.py +++ b/docker/client.py @@ -500,6 +500,9 @@ class Client(requests.Session): cpu_shares=None, working_dir=None, domainname=None, memswap_limit=0): + if isinstance(volumes, (str, unicode)): + volumes = [volumes, ] + config = self._container_config( image, command, hostname, user, detach, stdin_open, tty, mem_limit, ports, environment, dns, volumes, volumes_from, network_disabled, |
