stages: fix description for org.osbuild.containers.unit.create
Fixes #2053
This commit is contained in:
parent
961bed0b80
commit
cda3c43b2c
2 changed files with 4 additions and 3 deletions
|
|
@ -11,8 +11,9 @@ def validate(filename, cfg):
|
|||
raise ValueError(f"Error: the {filename} unit exceeds the maximum filename length.")
|
||||
|
||||
# Filename extension must match the config:
|
||||
# .service requires a Service section
|
||||
# .mount requires a Mount section
|
||||
# .container requires a Container section
|
||||
# .volume requires a Volume section
|
||||
# .network requires a Network section
|
||||
if filename.endswith(".container") and "Container" not in cfg:
|
||||
raise ValueError(f"Error: {filename} unit requires Container section")
|
||||
if filename.endswith(".volume") and "Volume" not in cfg:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"summary": "Create a podman systemd unit file",
|
||||
"description": [
|
||||
"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",
|
||||
"must contain the, '.container', '.volume' or '.network' suffix (other types of unit files",
|
||||
"are not supported). 'unit-path' determines determine the unit load path.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue