Skip to content

Commit

Permalink
Fix quadlet parameters when container uses rootfs
Browse files Browse the repository at this point in the history
Adjust quadlet parameters to set rootfs as image and clear image field when rootfs container is being used.
  • Loading branch information
mainnika committed Aug 29, 2024
1 parent 552af3e commit 9802035
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/module_utils/podman/quadlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ def custom_prepare_params(self, params: dict) -> dict:
params["label"] = ["%s=%s" % (k, v) for k, v in params["label"].items()]
if params["env"]:
params["env"] = ["%s=%s" % (k, v) for k, v in params["env"].items()]
if params["rootfs"]:
params["rootfs"] = params["image"]
params["image"] = None
if params["sysctl"]:
params["sysctl"] = ["%s=%s" % (k, v) for k, v in params["sysctl"].items()]
if params["tmpfs"]:
Expand Down

0 comments on commit 9802035

Please sign in to comment.