This commit is contained in:
nir0s 2015-02-11 22:26:23 +02:00
parent 53b5ed2178
commit ea2148ade1
1 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ def parse_host(addr):
else:
if "://" in addr:
raise errors.DockerException(
"Invalid bind address protocol: {0]".format(addr)
"Invalid bind address protocol: {0}".format(addr)
)
proto = "http"
@ -244,7 +244,7 @@ def parse_host(addr):
if proto == "http+unix":
return "{0}://{1}".format(proto, host)
return "{0}://{1}:{2}" % (proto, host, port)
return "{0}://{1}:{2}".format(proto, host, port)
def parse_devices(devices):