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

This commit is contained in:
Eric D. White 2014-08-24 21:07:26 +01:00
parent a419ffdf41
commit f44125ccb7

View file

@ -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: