File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1482,7 +1482,7 @@ func GetPodResourceName(podUnit *parser.UnitFile) string {
1482
1482
// Derive pod name from unit name (with added prefix), or use user-provided name.
1483
1483
podName , ok := podUnit .Lookup (PodGroup , KeyPodName )
1484
1484
if ! ok || len (podName ) == 0 {
1485
- podName = removeExtension ( podUnit . Filename , "systemd-" , "" )
1485
+ podName = "systemd-%N"
1486
1486
}
1487
1487
return podName
1488
1488
}
Original file line number Diff line number Diff line change 1
1
## assert-key-is Unit RequiresMountsFor "%t/containers"
2
2
## assert-key-is Service Type forking
3
3
## assert-key-is Service SyslogIdentifier "%N"
4
- ## assert-key-is-regex Service ExecStartPre ".*/podman pod create --infra-conmon-pidfile=%t/%N.pid --exit-policy=stop --replace --infra-name systemd-basic -infra --name systemd-basic "
5
- ## assert-key-is-regex Service ExecStart ".*/podman pod start systemd-basic "
6
- ## assert-key-is-regex Service ExecStop ".*/podman pod stop --ignore --time=10 systemd-basic "
7
- ## assert-key-is-regex Service ExecStopPost ".*/podman pod rm --ignore --force systemd-basic "
4
+ ## assert-key-is-regex Service ExecStartPre ".*/podman pod create --infra-conmon-pidfile=%t/%N.pid --exit-policy=stop --replace --infra-name systemd-%N -infra --name systemd-%N "
5
+ ## assert-key-is-regex Service ExecStart ".*/podman pod start systemd-%N "
6
+ ## assert-key-is-regex Service ExecStop ".*/podman pod stop --ignore --time=10 systemd-%N "
7
+ ## assert-key-is-regex Service ExecStopPost ".*/podman pod rm --ignore --force systemd-%N "
8
8
9
9
[Pod]
You can’t perform that action at this time.
0 commit comments