diff --git a/plugins/module_utils/podman/podman_pod_lib.py b/plugins/module_utils/podman/podman_pod_lib.py index 0ed30dbd..bef0a9d3 100644 --- a/plugins/module_utils/podman/podman_pod_lib.py +++ b/plugins/module_utils/podman/podman_pod_lib.py @@ -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},