1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-03-22 02:29:08 +00:00

Fix idempotency when using 0.0.0.0 in ports (#679)

Fix #678
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sergey 2023-11-30 15:12:17 +02:00 committed by GitHub
parent 821fe265eb
commit 2d006399b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -1187,7 +1187,7 @@ class PodmanContainerDiff:
if image_ports:
after += list(image_ports.keys())
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: