diff --git a/plugins/module_utils/podman/common.py b/plugins/module_utils/podman/common.py index ec06af23..4278d3a1 100644 --- a/plugins/module_utils/podman/common.py +++ b/plugins/module_utils/podman/common.py @@ -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: