stages: fix description for org.osbuild.containers.unit.create

Fixes #2053
This commit is contained in:
luizademelo 2025-03-27 15:55:17 -03:00 committed by Achilleas Koutsou
parent 961bed0b80
commit cda3c43b2c
2 changed files with 4 additions and 3 deletions

View file

@ -11,8 +11,9 @@ def validate(filename, cfg):
raise ValueError(f"Error: the {filename} unit exceeds the maximum filename length.") raise ValueError(f"Error: the {filename} unit exceeds the maximum filename length.")
# Filename extension must match the config: # Filename extension must match the config:
# .service requires a Service section # .container requires a Container section
# .mount requires a Mount section # .volume requires a Volume section
# .network requires a Network section
if filename.endswith(".container") and "Container" not in cfg: if filename.endswith(".container") and "Container" not in cfg:
raise ValueError(f"Error: {filename} unit requires Container section") raise ValueError(f"Error: {filename} unit requires Container section")
if filename.endswith(".volume") and "Volume" not in cfg: if filename.endswith(".volume") and "Volume" not in cfg:

View file

@ -2,7 +2,7 @@
"summary": "Create a podman systemd unit file", "summary": "Create a podman systemd unit file",
"description": [ "description": [
"This stage allows to create Podman systemd (quadlet) unit files. The `filename` property", "This stage allows to create Podman systemd (quadlet) unit files. The `filename` property",
"specifies the, '.service' or '.mount' file to be added. These names are", "specifies the, '.container', '.volume' or '.network' file to be added. These names are",
"validated using the, same rules as specified by podman-systemd.unit(5) and they", "validated using the, same rules as specified by podman-systemd.unit(5) and they",
"must contain the, '.container', '.volume' or '.network' suffix (other types of unit files", "must contain the, '.container', '.volume' or '.network' suffix (other types of unit files",
"are not supported). 'unit-path' determines determine the unit load path.", "are not supported). 'unit-path' determines determine the unit load path.",