From cda3c43b2cd7f6eb006e8719e58e8b0c4b7250a6 Mon Sep 17 00:00:00 2001 From: luizademelo Date: Thu, 27 Mar 2025 15:55:17 -0300 Subject: [PATCH] stages: fix description for org.osbuild.containers.unit.create Fixes #2053 --- stages/org.osbuild.containers.unit.create | 5 +++-- stages/org.osbuild.containers.unit.create.meta.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stages/org.osbuild.containers.unit.create b/stages/org.osbuild.containers.unit.create index 23914c02..13297249 100755 --- a/stages/org.osbuild.containers.unit.create +++ b/stages/org.osbuild.containers.unit.create @@ -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: diff --git a/stages/org.osbuild.containers.unit.create.meta.json b/stages/org.osbuild.containers.unit.create.meta.json index c873e2e7..24fc67fd 100644 --- a/stages/org.osbuild.containers.unit.create.meta.json +++ b/stages/org.osbuild.containers.unit.create.meta.json @@ -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.",