Skip to content

Commit

Permalink
Fix typo in quadlet generator (#868)
Browse files Browse the repository at this point in the history
This typo prevents the quadlet generator from picking up
--cpus and --platform options.

Signed-off-by: InsideTheVoid <[email protected]>
  • Loading branch information
InsideTheVoid authored Oct 15, 2024
1 parent d4977ea commit 1bdf437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/module_utils/podman/quadlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']}")
Expand Down Expand Up @@ -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"]:
Expand Down

0 comments on commit 1bdf437

Please sign in to comment.