Commit 4f03dd65 by James Cammarata

Ensure port in docker expose list is a string

Fixes #8731
parent bc583dab
...@@ -450,7 +450,7 @@ class DockerManager: ...@@ -450,7 +450,7 @@ class DockerManager:
if expose_list: if expose_list:
exposed = [] exposed = []
for port in expose_list: for port in expose_list:
port = port.strip() port = str(port).strip()
if port.endswith('/tcp') or port.endswith('/udp'): if port.endswith('/tcp') or port.endswith('/udp'):
port_with_proto = tuple(port.split('/')) port_with_proto = tuple(port.split('/'))
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment