diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-08-31 09:19:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 09:19:10 -0400 |
commit | 6bda96ab183d5499b20bff2310ad0847c89de2c5 (patch) | |
tree | b2d3e9b8a3164227a526b249dfd10fe720ac9775 /vendor | |
parent | 55710d8d559bff7ce0936717afb9d9808d3132b3 (diff) | |
parent | 0ee9a3129b312e0a40b2e78e97ee356205495333 (diff) | |
download | podman-6bda96ab183d5499b20bff2310ad0847c89de2c5.tar.gz podman-6bda96ab183d5499b20bff2310ad0847c89de2c5.tar.bz2 podman-6bda96ab183d5499b20bff2310ad0847c89de2c5.zip |
Merge pull request #15510 from vrothberg/fix-15485
podman rmi: emit untag events
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/github.com/containers/common/libimage/image.go | 4 | ||||
-rw-r--r-- | vendor/modules.txt | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/containers/common/libimage/image.go b/vendor/github.com/containers/common/libimage/image.go index d1548eb23..3cc843ed3 100644 --- a/vendor/github.com/containers/common/libimage/image.go +++ b/vendor/github.com/containers/common/libimage/image.go @@ -475,7 +475,11 @@ func (i *Image) removeRecursive(ctx context.Context, rmMap map[string]*RemoveIma } return processedIDs, err } + report.Untagged = append(report.Untagged, i.Names()...) + for _, name := range i.Names() { + i.runtime.writeEvent(&Event{ID: i.ID(), Name: name, Time: time.Now(), Type: EventTypeImageUntag}) + } if !hasChildren { report.Removed = true diff --git a/vendor/modules.txt b/vendor/modules.txt index 5aa5af553..d80f64177 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -114,7 +114,7 @@ github.com/containers/buildah/pkg/rusage github.com/containers/buildah/pkg/sshagent github.com/containers/buildah/pkg/util github.com/containers/buildah/util -# github.com/containers/common v0.49.2-0.20220823130605-72a7da3358ac +# github.com/containers/common v0.49.2-0.20220826180622-c2dcb4e70340 ## explicit github.com/containers/common/libimage github.com/containers/common/libimage/define |