From 90342962098e97ac67d078691989f9618c8e5742 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 28 Dec 2017 01:59:10 +0000 Subject: [PATCH] don't propagate ImageID in MapContainerImage2Name This was building a set of all the image ids represented by the same unversioned image. Well, it was doing that until I broke it with a silly mistake in #1739 - instead of extracting the imageID from the original node ID, it's extracting it from the updated ID, which is the unversioned image. Even if it was working though, it's pointless since nothing is looking at that info. --- render/container.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/render/container.go b/render/container.go index adb71f928..22d9ac7be 100644 --- a/render/container.go +++ b/render/container.go @@ -336,10 +336,6 @@ func MapContainerImage2Name(n report.Node) report.Nodes { imageNameWithoutVersion := docker.ImageNameWithoutVersion(imageName) n.ID = report.MakeContainerImageNodeID(imageNameWithoutVersion) - if imageID, ok := report.ParseContainerImageNodeID(n.ID); ok { - n.Sets = n.Sets.Add(docker.ImageID, report.MakeStringSet(imageID)) - } - return report.Nodes{n.ID: n} }