From cf34b4d4693c94f3592ec9e08ff28cbcfd805f5e Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Wed, 8 Jan 2025 15:17:27 +0200 Subject: [PATCH] Don't pull image when state is absent fix #888 Signed-off-by: Sagi Shnaidman --- plugins/module_utils/podman/podman_container_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/podman/podman_container_lib.py b/plugins/module_utils/podman/podman_container_lib.py index f38b1264..28adfd78 100644 --- a/plugins/module_utils/podman/podman_container_lib.py +++ b/plugins/module_utils/podman/podman_container_lib.py @@ -1733,7 +1733,7 @@ def __init__(self, module, params): self.image = self.module_params['image'] self.state = self.module_params['state'] image_actions = ensure_image_exists( - self.module, self.image, self.module_params) if self.state != 'quadlet' else [] + self.module, self.image, self.module_params) if self.state not in ('quadlet', 'absent') else [] self.results['actions'] += image_actions self.restart = self.module_params['force_restart']