summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-01-04 19:50:09 +0100
committerGitHub <noreply@github.com>2022-01-04 19:50:09 +0100
commit9a35494141f2a3614e6e2a4c3bc2d5c6d5db9e92 (patch)
treefe5ac223fb4bac476fb75076e8d99ed877ed5939 /pkg/api/handlers/compat
parent47cf00eb1349e7823b2c4286e39a517ea4657242 (diff)
parent116a276e8ca28beca9e60a21680ab3cb94fd5aa1 (diff)
downloadpodman-9a35494141f2a3614e6e2a4c3bc2d5c6d5db9e92.tar.gz
podman-9a35494141f2a3614e6e2a4c3bc2d5c6d5db9e92.tar.bz2
podman-9a35494141f2a3614e6e2a4c3bc2d5c6d5db9e92.zip
Merge pull request #12643 from leahneukirchen/events-compat
legacy events: also set Action="die"
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r--pkg/api/handlers/compat/events.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/events.go b/pkg/api/handlers/compat/events.go
index 901acdac4..bc31a36c4 100644
--- a/pkg/api/handlers/compat/events.go
+++ b/pkg/api/handlers/compat/events.go
@@ -91,6 +91,8 @@ func GetEvents(w http.ResponseWriter, r *http.Request) {
e := entities.ConvertToEntitiesEvent(*evt)
if !utils.IsLibpodRequest(r) && e.Status == "died" {
e.Status = "die"
+ e.Action = "die"
+ e.Actor.Attributes["exitCode"] = e.Actor.Attributes["containerExitCode"]
}
if err := coder.Encode(e); err != nil {