Skip to content

Commit

Permalink
Don't check image availability in Quadlet (#872)
Browse files Browse the repository at this point in the history
Fix #871
Signed-off-by: Sagi Shnaidman <[email protected]>
  • Loading branch information
sshnaidm authored Oct 27, 2024
1 parent 6234854 commit 4d3009f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/module_utils/podman/podman_container_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1731,10 +1731,11 @@ def __init__(self, module, params):
self.module.get_bin_path(self.module_params['executable'],
required=True)
self.image = self.module_params['image']
self.state = self.module_params['state']
image_actions = ensure_image_exists(
self.module, self.image, self.module_params)
self.module, self.image, self.module_params) if self.state != 'quadlet' else []
self.results['actions'] += image_actions
self.state = self.module_params['state']

self.restart = self.module_params['force_restart']
self.recreate = self.module_params['recreate']

Expand Down

0 comments on commit 4d3009f

Please sign in to comment.