diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-01-04 19:50:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 19:50:09 +0100 |
commit | 9a35494141f2a3614e6e2a4c3bc2d5c6d5db9e92 (patch) | |
tree | fe5ac223fb4bac476fb75076e8d99ed877ed5939 /pkg/api/handlers/compat | |
parent | 47cf00eb1349e7823b2c4286e39a517ea4657242 (diff) | |
parent | 116a276e8ca28beca9e60a21680ab3cb94fd5aa1 (diff) | |
download | podman-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.go | 2 |
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 { |