summaryrefslogtreecommitdiff
path: root/pkg/systemd/generate/pods.go
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-02-15 15:46:00 +0100
committerPaul Holzinger <paul.holzinger@web.de>2021-02-16 09:51:09 +0100
commitbf083c185d766fb9eb79c08b2d831da0fa2abafd (patch)
treebff7197bd3fd501d49c9baa3ec605b0f7b06caae /pkg/systemd/generate/pods.go
parentdf8ba7f4a92750bfb173b5486a663d1735d70b2d (diff)
downloadpodman-bf083c185d766fb9eb79c08b2d831da0fa2abafd.tar.gz
podman-bf083c185d766fb9eb79c08b2d831da0fa2abafd.tar.bz2
podman-bf083c185d766fb9eb79c08b2d831da0fa2abafd.zip
Fix broken podman generate systemd --new with pods
The unit generation accidentally escaped the %t in the pod id file path. This is a regression caused by #9178. This was not caught by the tests because the test itself was wrong. It used a full path instead of the systemd variable %t like the actual code does. Fixes #9373 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'pkg/systemd/generate/pods.go')
-rw-r--r--pkg/systemd/generate/pods.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/systemd/generate/pods.go b/pkg/systemd/generate/pods.go
index d6ede19af..ff8ce3a03 100644
--- a/pkg/systemd/generate/pods.go
+++ b/pkg/systemd/generate/pods.go
@@ -162,7 +162,7 @@ func PodUnits(pod *libpod.Pod, options entities.GenerateSystemdOptions) (map[str
}
units[podInfo.ServiceName] = out
for _, info := range containerInfos {
- info.pod = podInfo
+ info.Pod = podInfo
out, err := executeContainerTemplate(info, options)
if err != nil {
return nil, err