mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
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>
This commit is contained in:
@ -91,6 +91,7 @@ func GetEvents(w http.ResponseWriter, r *http.Request) {
|
|||||||
e := entities.ConvertToEntitiesEvent(*evt)
|
e := entities.ConvertToEntitiesEvent(*evt)
|
||||||
if !utils.IsLibpodRequest(r) && e.Status == "died" {
|
if !utils.IsLibpodRequest(r) && e.Status == "died" {
|
||||||
e.Status = "die"
|
e.Status = "die"
|
||||||
|
e.Action = "die"
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := coder.Encode(e); err != nil {
|
if err := coder.Encode(e); err != nil {
|
||||||
|
Reference in New Issue
Block a user