Skip to content

Commit

Permalink
Fix podman pod v5 broken info issue
Browse files Browse the repository at this point in the history
Fix breakig change introduced in Podman v5:
 containers/podman#21514
Related-to: #712

Signed-off-by: Sagi Shnaidman <[email protected]>
  • Loading branch information
sshnaidm committed Feb 17, 2024
1 parent 5e15993 commit 42f1051
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/module_utils/podman/podman_pod_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,8 @@ def update_pod_result(self, changed=True):
(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},
Expand Down

0 comments on commit 42f1051

Please sign in to comment.