diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-04-08 09:22:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 09:22:49 -0700 |
commit | 1671ee557a6d354680be475991ca85a82f312a99 (patch) | |
tree | 635de73c75d45a329966fade1794f4fc3337587f | |
parent | 7f8e9bd54c7a1c46ea19b58296f6629d55988e0d (diff) | |
parent | 35e46d8d6ba157cc0ca3d6a72f542ffe136786c5 (diff) | |
download | podman-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.go | 2 |
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 } |