1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Add IPv6 support for publishing ports (#226)

This commit is contained in:
Sergey 2021-03-31 18:28:46 +03:00 committed by GitHub
parent ed3a3dc080
commit d87777394b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 87 additions and 4 deletions

View file

@ -380,7 +380,9 @@ class PodmanPodDiff:
i.replace('/tcp', '')
]).strip(':') for i, j in ports.items()]
after = self.params['publish'] or []
after = [i.replace("/tcp", "") for i in after]
after = [
i.replace("/tcp", "").replace("[", "").replace("]", "").strip(":")
for i in after]
# No support for port ranges yet
for ports in after:
if "-" in ports: