mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
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.
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user