summaryrefslogtreecommitdiff
path: root/libpod/events/events.go
diff options
context:
space:
mode:
authorAditya R <arajan@redhat.com>2022-03-28 14:57:27 +0530
committerAditya R <arajan@redhat.com>2022-03-28 15:07:02 +0530
commit82ed99b6afa9ec67539afd6e3d9e299ea5c4e74b (patch)
tree18dad596c3b540d0748d1482d4fefe1c15a7a7ca /libpod/events/events.go
parent0ebf0bc56091d305ac064c59e20289d47bf56437 (diff)
downloadpodman-82ed99b6afa9ec67539afd6e3d9e299ea5c4e74b.tar.gz
podman-82ed99b6afa9ec67539afd6e3d9e299ea5c4e74b.tar.bz2
podman-82ed99b6afa9ec67539afd6e3d9e299ea5c4e74b.zip
event: generate a valid event on container rename operation
Following commit ensures that podman generates a valid event on `podman container rename` where event specifies that it is a rename event and container name swtichted to the latest name. Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'libpod/events/events.go')
-rw-r--r--libpod/events/events.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/events/events.go b/libpod/events/events.go
index 16dd6424e..d7bba7295 100644
--- a/libpod/events/events.go
+++ b/libpod/events/events.go
@@ -188,6 +188,8 @@ func StringToStatus(name string) (Status, error) {
return Refresh, nil
case Remove.String():
return Remove, nil
+ case Rename.String():
+ return Rename, nil
case Renumber.String():
return Renumber, nil
case Restart.String():