diff options
author | Jason T. Greene <jason.greene@redhat.com> | 2021-09-10 00:50:41 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-09-16 09:42:14 -0400 |
commit | 1af0f8934ce1d4bbdedd6583579ca0eb6469e831 (patch) | |
tree | 0c65c102f2871e519eefd3a5538d92042ffbe3f8 /pkg/domain/entities | |
parent | c6e4453f6223bbb2b6cfd5242c0d9af55cd8b121 (diff) | |
download | podman-1af0f8934ce1d4bbdedd6583579ca0eb6469e831.tar.gz podman-1af0f8934ce1d4bbdedd6583579ca0eb6469e831.tar.bz2 podman-1af0f8934ce1d4bbdedd6583579ca0eb6469e831.zip |
Add deprecated fields for 1.22+ clients that still expect them
Signed-off-by: Jason Greene <jason.greene@redhat.com>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/events.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/domain/entities/events.go b/pkg/domain/entities/events.go index 5e7cc9ad1..73a375b94 100644 --- a/pkg/domain/entities/events.go +++ b/pkg/domain/entities/events.go @@ -60,6 +60,10 @@ func ConvertToEntitiesEvent(e libpodEvents.Event) *Event { attributes["name"] = e.Name attributes["containerExitCode"] = strconv.Itoa(e.ContainerExitCode) return &Event{dockerEvents.Message{ + // Compatibility with clients that still look for deprecated API elements + Status: e.Status.String(), + ID: e.ID, + From: e.Image, Type: e.Type.String(), Action: e.Status.String(), Actor: dockerEvents.Actor{ |