1
0
mirror of https://github.com/containers/podman.git synced 2026-02-05 15:45:08 +01:00

Revert "Quadlet - fix pod name to depend on the name of the generate service"

This reverts commit 4f38c2fea2.

Fixes: #26105
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
This commit is contained in:
Ygal Blum
2025-05-12 09:30:53 -04:00
parent c0b352f2eb
commit 09d9d3e26b
2 changed files with 5 additions and 5 deletions

View File

@@ -1482,7 +1482,7 @@ func GetPodResourceName(podUnit *parser.UnitFile) string {
// Derive pod name from unit name (with added prefix), or use user-provided name.
podName, ok := podUnit.Lookup(PodGroup, KeyPodName)
if !ok || len(podName) == 0 {
podName = "systemd-%N"
podName = removeExtension(podUnit.Filename, "systemd-", "")
}
return podName
}