diff options
author | Joffrey F <joffrey@docker.com> | 2016-06-02 18:21:29 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2016-06-02 18:21:29 -0700 |
commit | 0176fa171f9bb5a4453ceb2abe1cdff1696bee59 (patch) | |
tree | 0d93e3c7921fd6d6dfbc797d163e62822fb5a1df /docker/client.py | |
parent | d9227139238a824fcbab2229ea62e1dab64150d1 (diff) | |
download | docker-py-0176fa171f9bb5a4453ceb2abe1cdff1696bee59.tar.gz |
Update parse_host and tests
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/client.py')
-rw-r--r-- | docker/client.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docker/client.py b/docker/client.py index 2da355a..b96a78c 100644 --- a/docker/client.py +++ b/docker/client.py @@ -14,7 +14,6 @@ import json import struct -import sys import requests import requests.exceptions @@ -63,7 +62,9 @@ class Client( self._auth_configs = auth.load_config() - base_url = utils.parse_host(base_url, sys.platform, tls=bool(tls)) + base_url = utils.parse_host( + base_url, constants.IS_WINDOWS_PLATFORM, tls=bool(tls) + ) if base_url.startswith('http+unix://'): self._custom_adapter = UnixAdapter(base_url, timeout) self.mount('http+docker://', self._custom_adapter) |