Merge pull request #8736 from ericdwhite/issue-8735-Trim-docker-module-expose-items
module docker - expose will fail to port forward network connections if there are spaces in the CSV value
This commit is contained in:
commit
69484fac7b
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue