Skip to content

Commit d9928e0

Browse files
Merge pull request #19014 from nak3/replace-loopindex2
Automatic merge from submit-queue (batch tested with PRs 18939, 19014). Replace loop index with generation number in addImageStreamsToGraph() This patch makes a tiny change to replace loop index with actual generation number in the log message.
2 parents 6b77f1e + 895df7d commit d9928e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/oc/admin/prune/imageprune/prune.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -354,11 +354,11 @@ func (p *pruner) addImageStreamsToGraph(streams *imageapi.ImageStreamList, limit
354354
for tag, history := range stream.Status.Tags {
355355
istNode := imagegraph.EnsureImageStreamTagNode(p.g, makeISTagWithStream(stream, tag))
356356

357-
for i := range history.Items {
357+
for i, tagEvent := range history.Items {
358358
imageNode := imagegraph.FindImage(p.g, history.Items[i].Image)
359359
if imageNode == nil {
360360
glog.V(2).Infof("Unable to find image %q in graph (from tag=%q, revision=%d, dockerImageReference=%s) - skipping",
361-
history.Items[i].Image, tag, i, history.Items[i].DockerImageReference)
361+
history.Items[i].Image, tag, tagEvent.Generation, history.Items[i].DockerImageReference)
362362
continue
363363
}
364364

0 commit comments

Comments
 (0)