Skip to content

Commit

Permalink
Don't pull image when state is absent
Browse files Browse the repository at this point in the history
fix #888
Signed-off-by: Sagi Shnaidman <[email protected]>
  • Loading branch information
sshnaidm committed Jan 8, 2025
1 parent 4c84135 commit cf34b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/podman/podman_container_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit cf34b4d

Please sign in to comment.