diff --git a/plugins/module_utils/podman/quadlet.py b/plugins/module_utils/podman/quadlet.py index 11efee70..ec11a7e0 100644 --- a/plugins/module_utils/podman/quadlet.py +++ b/plugins/module_utils/podman/quadlet.py @@ -222,7 +222,7 @@ def custom_prepare_params(self, params: dict) -> dict: params["podman_args"].append(f"--cidfile {params['cidfile']}") if params["conmon_pidfile"]: params["podman_args"].append(f"--conmon-pidfile {params['conmon_pidfile']}") - if params['cpus']: + if params["cpus"]: params["podman_args"].append(f"--cpus {params['cpus']}") if params["cpuset_cpus"]: params["podman_args"].append(f"--cpuset-cpus {params['cpuset_cpus']}") @@ -316,7 +316,7 @@ def custom_prepare_params(self, params: dict) -> dict: params["podman_args"].append(f"--pid {params['pid']}") if params["pid_file"]: params["podman_args"].append(f"--pid-file {params['pid_file']}") - if params['platform']: + if params["platform"]: params["podman_args"].append(f"--platform {params['platform']}") if params["preserve_fd"]: for pres in params["preserve_fd"]: