summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-02 07:42:05 -0400
committerGitHub <noreply@github.com>2021-10-02 07:42:05 -0400
commit375fbb9805ec9dcd54f039536475bb74847caf08 (patch)
tree827895b29f44682c62d88d6d0812470b1d711805 /pkg
parent1de96f2c4c390bae29c303e2390da9e87a993d3f (diff)
parent163d81cc0dd0139eb14dfcd6595c9eafb40472b2 (diff)
downloadpodman-375fbb9805ec9dcd54f039536475bb74847caf08.tar.gz
podman-375fbb9805ec9dcd54f039536475bb74847caf08.tar.bz2
podman-375fbb9805ec9dcd54f039536475bb74847caf08.zip
Merge pull request #11816 from cdoern/podEventsBug
Pod Events Logging Fix
Diffstat (limited to 'pkg')
-rw-r--r--pkg/specgen/generate/pod_create.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/specgen/generate/pod_create.go b/pkg/specgen/generate/pod_create.go
index e523aef42..a4027eae7 100644
--- a/pkg/specgen/generate/pod_create.go
+++ b/pkg/specgen/generate/pod_create.go
@@ -59,6 +59,12 @@ func MakePod(p *entities.PodSpec, rt *libpod.Runtime) (*libpod.Pod, error) {
if err != nil {
return nil, err
}
+ } else {
+ // SavePod is used to save the pod state and trigger a create event even if infra is not created
+ err := rt.SavePod(pod)
+ if err != nil {
+ return nil, err
+ }
}
return pod, nil
}