diff options
author | Jason T. Greene <jason.greene@redhat.com> | 2021-09-10 00:50:41 -0500 |
---|---|---|
committer | root <root@localhost.localdomain> | 2021-09-10 20:08:45 -0500 |
commit | 3c77a98e4582dd1ddd1820506068b03575109dfe (patch) | |
tree | e042a33ddc152418058da5f71d411695c8669373 /pkg/domain/entities | |
parent | 63f6656f8fa79d7f6e01379d7ba0aa4ab3c03b37 (diff) | |
download | podman-3c77a98e4582dd1ddd1820506068b03575109dfe.tar.gz podman-3c77a98e4582dd1ddd1820506068b03575109dfe.tar.bz2 podman-3c77a98e4582dd1ddd1820506068b03575109dfe.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{ |