Skip to content

Commit

Permalink
params gpus should be exit_policy (#784)
Browse files Browse the repository at this point in the history
The code should be setting `--exit-policy` to the value of `params['exit_policy']`
instead of `params['gpus']`

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm authored Jun 13, 2024
1 parent e88baa9 commit c3c5877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/podman/quadlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def custom_prepare_params(self, params: dict) -> dict:
for gidmap in params["gidmap"]:
params["podman_args"].append(f"--gidmap {gidmap}")
if params["exit_policy"]:
params["podman_args"].append(f"--exit-policy={params['gpus']}")
params["podman_args"].append(f"--exit-policy={params['exit_policy']}")
if params["gpus"]:
params["podman_args"].append(f"--gpus {params['gpus']}")
if params["hostname"]:
Expand Down

0 comments on commit c3c5877

Please sign in to comment.