generate systemd: rename "cid" to "ctr-id"

Rename the container ID file from "cid" to "ctr-id" to make the
generated unit files a) easier to read and to b) pro-actively
avoid any confusion when pod ID files are being added in the
future.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2020-05-29 11:40:28 +02:00
parent cf89bb6711
commit 144c6bb76d
3 changed files with 17 additions and 17 deletions

View File

@ -191,7 +191,7 @@ var _ = Describe("Podman generate systemd", func() {
found, _ := session.GrepString("# container-foo.service")
Expect(found).To(BeTrue())
found, _ = session.GrepString("stop --ignore --cidfile %t/%n-cid -t 42")
found, _ = session.GrepString("stop --ignore --cidfile %t/%n-ctr-id -t 42")
Expect(found).To(BeTrue())
})