diff options
Diffstat (limited to 'docker/utils')
-rw-r--r-- | docker/utils/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docker/utils/utils.py b/docker/utils/utils.py index c5914cf..70fcb1f 100644 --- a/docker/utils/utils.py +++ b/docker/utils/utils.py @@ -400,11 +400,12 @@ def parse_host(addr, platform=None, tls=False): if addr == 'tcp://': raise errors.DockerException( - "Invalid bind address format: {0}".format(addr)) + "Invalid bind address format: {0}".format(addr) + ) elif addr.startswith('unix://'): addr = addr[7:] elif addr.startswith('tcp://'): - proto = "http" + proto = 'http{0}'.format('s' if tls else '') addr = addr[6:] elif addr.startswith('https://'): proto = "https" |