mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
events: support "die" filter
Map "die" to the "died" status for Docker compat. Fixes: #16857 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -21,6 +21,9 @@ func generateEventFilter(filter, filterValue string) (func(e *Event) bool, error
|
||||
return strings.HasPrefix(e.ID, filterValue)
|
||||
}, nil
|
||||
case "EVENT", "STATUS":
|
||||
if filterValue == "die" { // Docker compat
|
||||
filterValue = "died"
|
||||
}
|
||||
return func(e *Event) bool {
|
||||
return string(e.Status) == filterValue
|
||||
}, nil
|
||||
|
Reference in New Issue
Block a user