summaryrefslogtreecommitdiff
path: root/libpod/image/image.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-04-05 10:10:11 -0500
committerbaude <bbaude@redhat.com>2019-04-08 08:36:40 -0500
commit35e46d8d6ba157cc0ca3d6a72f542ffe136786c5 (patch)
treeffb9edb20a49d22b19bcdb2e45967624992a07c4 /libpod/image/image.go
parentd86729e743fb5a58b9364ee5e991b5db2e9dd600 (diff)
downloadpodman-35e46d8d6ba157cc0ca3d6a72f542ffe136786c5.tar.gz
podman-35e46d8d6ba157cc0ca3d6a72f542ffe136786c5.tar.bz2
podman-35e46d8d6ba157cc0ca3d6a72f542ffe136786c5.zip
add image rmi event
when deleting a commited image, the path for deletion has an early exit and the image remove event was not being triggered. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/image/image.go')
-rw-r--r--libpod/image/image.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index cc056b816..757d034a2 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -361,6 +361,7 @@ func (i *Image) Remove(force bool) error {
if _, err := i.imageruntime.store.DeleteImage(i.ID(), true); err != nil {
return err
}
+ i.newImageEvent(events.Remove)
for parent != nil {
nextParent, err := parent.GetParent()
if err != nil {
@@ -383,7 +384,6 @@ func (i *Image) Remove(force bool) error {
}
parent = nextParent
}
- defer i.newImageEvent(events.Remove)
return nil
}