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
Fix #743 Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
35cdaa1365
commit
a786cad810
2 changed files with 3 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -132,6 +132,7 @@
|
|||
- "127.0.0.2:7671:7676/udp"
|
||||
- "127.0.0.1:13122:8871/tcp"
|
||||
- "127.0.0.1:43423:8872"
|
||||
- "0.0.0.0:44444:44445"
|
||||
- "[::1]:8743:8745"
|
||||
register: pod8_info
|
||||
|
||||
|
|
@ -152,6 +153,7 @@
|
|||
- "127.0.0.2:7671:7676/udp"
|
||||
- "127.0.0.1:13122:8871/tcp"
|
||||
- "127.0.0.1:43423:8872"
|
||||
- "0.0.0.0:44444:44445"
|
||||
- "[::1]:8743:8745"
|
||||
register: pod9_info
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue