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

Fix idempotency for pod with 0.0.0.0 (#744)

Fix #743
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sergey 2024-05-13 17:21:03 +03:00 committed by GitHub
parent 35cdaa1365
commit 4c987a1c22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -543,7 +543,7 @@ class PodmanPodDiff:
before.append(compose(port, h))
after = self.params['publish'] or []
after = [
i.replace("/tcp", "").replace("[", "").replace("]", "")
i.replace("/tcp", "").replace("[", "").replace("]", "").replace("0.0.0.0:", "")
for i in after]
# No support for port ranges yet
for ports in after: