diff options
author | Leah Neukirchen <leah@vuxu.org> | 2021-12-17 15:21:56 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-12-17 15:24:48 +0100 |
commit | a1ebde118a96930d56cb630824157ccbfff619cc (patch) | |
tree | 555473d60d0179f81cf65db8dfa3df1d9722f19b /pkg | |
parent | 820cf0e0661764de4e61e3d27a603acec817a363 (diff) | |
download | podman-a1ebde118a96930d56cb630824157ccbfff619cc.tar.gz podman-a1ebde118a96930d56cb630824157ccbfff619cc.tar.bz2 podman-a1ebde118a96930d56cb630824157ccbfff619cc.zip |
legacy events: also set Action="die"
Since #10168, on the event "died", the Status is set to "die"
for compatibility with the Docker API. Docker also sets
the field Action to "died", so do the same here.
Signed-off-by: Leah Neukirchen <leah@vuxu.org>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/api/handlers/compat/events.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/events.go b/pkg/api/handlers/compat/events.go index 901acdac4..4f23e681f 100644 --- a/pkg/api/handlers/compat/events.go +++ b/pkg/api/handlers/compat/events.go @@ -91,6 +91,7 @@ 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" } if err := coder.Encode(e); err != nil { |