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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user