mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Exposing tcp and udp for same port fails. Fixes issue #4354.
This commit is contained in:
@@ -1012,7 +1012,8 @@ class TaskParameters(DockerBaseClass):
|
||||
protocol = 'tcp'
|
||||
match = re.search(r'(/.+$)', port)
|
||||
if match:
|
||||
protocol = match.group(1)
|
||||
protocol = match.group(1).replace('/', '')
|
||||
port = re.sub(r'/.+$', '', port)
|
||||
exposed.append((port, protocol))
|
||||
if published_ports:
|
||||
# Any published port should also be exposed
|
||||
|
||||
Reference in New Issue
Block a user