mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-23 06:21:43 -07:00
Issue 8735 - module docker - expose values should be striped to ensure port forwarding works.
This commit is contained in:
parent
a419ffdf41
commit
f44125ccb7
1 changed files with 1 additions and 0 deletions
|
@ -450,6 +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()
|
||||||
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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue