Ensure port in docker expose list is a string

Fixes #8731
This commit is contained in:
James Cammarata 2014-09-16 21:38:49 -05:00
parent 40d2932b5a
commit 2fac1fd865

View file

@ -450,7 +450,7 @@ class DockerManager:
if expose_list:
exposed = []
for port in expose_list:
port = port.strip()
port = str(port).strip()
if port.endswith('/tcp') or port.endswith('/udp'):
port_with_proto = tuple(port.split('/'))
else: