Skip to content

Commit

Permalink
Fix max_size idempotency issue (#862)
Browse files Browse the repository at this point in the history
Fix #843
Signed-off-by: Sagi Shnaidman <[email protected]>
  • Loading branch information
sshnaidm authored Oct 11, 2024
1 parent 8aa5708 commit d4977ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/module_utils/podman/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ def diff_generic(params, info_config, module_arg, cmd_arg, boolean_type=False):
before = ''
elif isinstance(after, dict):
after = ",".join(sorted(
[str(k).lower() + "=" + str(v).lower() for k, v in after.items() if v is not None]))
[str(k).lower().replace("max_size", "max-size") + "=" + str(v).lower()
for k, v in after.items() if v is not None]))
if before:
before = ",".join(sorted([j.lower() for j in before]))
else:
Expand Down

0 comments on commit d4977ea

Please sign in to comment.