From d3d19df6c2b1c5f1553cca1c15a2ff5e7193ac13 Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Sun, 24 Aug 2025 14:43:22 +0300 Subject: [PATCH] Fix image pull error --- plugins/module_utils/podman/podman_container_lib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/module_utils/podman/podman_container_lib.py b/plugins/module_utils/podman/podman_container_lib.py index e9dd50b..1133517 100644 --- a/plugins/module_utils/podman/podman_container_lib.py +++ b/plugins/module_utils/podman/podman_container_lib.py @@ -1848,6 +1848,8 @@ def ensure_image_exists(module, image, module_params, client): img = client.images.pull(image) if not img.get("id"): module.fail_json(msg="Can't find and pull image %s: %s" % (image, img["text"])) + image_actions.append("pulled image %s" % image) + return image_actions else: image_pull_cmd = [module_exec, "image", "pull", image] if module_params["tls_verify"] is False: @@ -2113,7 +2115,6 @@ class PodmanManager: if not disable_image_pull else [] ) - self.module.warn(f"Actions performed: {image_actions} and current result: {self.results}") self.results["actions"] += image_actions self.restart = self.module_params["force_restart"]