Merge pull request #29 from raphdg/fix_shlex

Fixed python26 shlex split of unicode strings.
This commit is contained in:
Joffrey F 2013-08-14 07:20:40 -07:00
commit f3ff3925c6
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class Client(requests.Session):
detach=False, stdin_open=False, tty=False, mem_limit=0, ports=None,
environment=None, dns=None, volumes=None, volumes_from=None):
if isinstance(command, six.string_types):
command = shlex.split(command)
command = shlex.split(str(command))
return {
'Hostname': hostname,
'PortSpecs': ports,