Skip to content

Commit ea2148a

Browse files
committed
fixes
1 parent 53b5ed2 commit ea2148a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/utils/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def parse_host(addr):
216216
else:
217217
if "://" in addr:
218218
raise errors.DockerException(
219-
"Invalid bind address protocol: {0]".format(addr)
219+
"Invalid bind address protocol: {0}".format(addr)
220220
)
221221
proto = "http"
222222

@@ -244,7 +244,7 @@ def parse_host(addr):
244244

245245
if proto == "http+unix":
246246
return "{0}://{1}".format(proto, host)
247-
return "{0}://{1}:{2}" % (proto, host, port)
247+
return "{0}://{1}:{2}".format(proto, host, port)
248248

249249

250250
def parse_devices(devices):

0 commit comments

Comments
 (0)