mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Issue 8735 - module docker - expose values should be striped to ensure port forwarding works.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user