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:
parent
4ba426f981
commit
a9c54c5e7f
1 changed files with 2 additions and 0 deletions
|
|
@ -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},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue