Skip to content

Commit

Permalink
Merge pull request containers#10171 from rhatdan/events
Browse files Browse the repository at this point in the history
Docker returns 'die' status rather then 'died' status
  • Loading branch information
openshift-merge-robot authored Apr 29, 2021
2 parents 386b7f9 + 92371d6 commit e7e9795
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/api/handlers/compat/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ func GetEvents(w http.ResponseWriter, r *http.Request) {
}

e := entities.ConvertToEntitiesEvent(*evt)
if !utils.IsLibpodRequest(r) && e.Status == "died" {
e.Status = "die"
}

if err := coder.Encode(e); err != nil {
logrus.Errorf("unable to write json: %q", err)
}
Expand Down

0 comments on commit e7e9795

Please sign in to comment.