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

Fix podman pod v5 broken info issue

Fix breakig change introduced in Podman v5:
 https://github.com/containers/podman/pull/21514
Related-to: #712

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sagi Shnaidman 2024-02-17 22:04:44 +02:00
parent 4ba426f981
commit a9c54c5e7f

View file

@ -800,6 +800,8 @@ class PodmanPodManager:
(default: {True})
"""
facts = self.pod.get_info() if changed else self.pod.info
if isinstance(facts, list):
facts = facts[0]
out, err = self.pod.stdout, self.pod.stderr
self.results.update({'changed': changed, 'pod': facts,
'podman_actions': self.pod.actions},