summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-04-08 09:22:49 -0700
committerGitHub <noreply@github.com>2019-04-08 09:22:49 -0700
commit1671ee557a6d354680be475991ca85a82f312a99 (patch)
tree635de73c75d45a329966fade1794f4fc3337587f
parent7f8e9bd54c7a1c46ea19b58296f6629d55988e0d (diff)
parent35e46d8d6ba157cc0ca3d6a72f542ffe136786c5 (diff)
downloadpodman-1671ee557a6d354680be475991ca85a82f312a99.tar.gz
podman-1671ee557a6d354680be475991ca85a82f312a99.tar.bz2
podman-1671ee557a6d354680be475991ca85a82f312a99.zip
Merge pull request #2862 from baude/rmiimageevent
add image rmi event
-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
}