Skip to content

Commit

Permalink
Fix command idempotency with quotes (#839)
Browse files Browse the repository at this point in the history
Fix #838
Signed-off-by: Sagi Shnaidman <[email protected]>
  • Loading branch information
sshnaidm authored Sep 5, 2024
1 parent f9d33e8 commit 46d4378
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/module_utils/podman/podman_container_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,8 @@ def _join_quotes(com_list):
if self.module_params['command'] is not None:
before = self.info['config']['cmd']
after = self.params['command']
before = _join_quotes(before)
if before:
before = _join_quotes(before)
if isinstance(after, list):
after = [str(i) for i in after]
if isinstance(after, str):
Expand Down

0 comments on commit 46d4378

Please sign in to comment.