Issue 8735 - module docker - expose values should be striped to ensure port forwarding works.

reviewable/pr18780/r1
Eric D. White 10 years ago
parent f0a552c060
commit 6f9cb7ab61

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

Loading…
Cancel
Save