mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 04:31:28 +00:00
Fix Graph ByParent() to generate list of child images per parent image.
This commit is contained in:
@@ -323,9 +323,9 @@ func (graph *Graph) ByParent() (map[string][]*Image, error) {
|
||||
return
|
||||
}
|
||||
if children, exists := byParent[parent.ID]; exists {
|
||||
byParent[parent.ID] = []*Image{image}
|
||||
} else {
|
||||
byParent[parent.ID] = append(children, image)
|
||||
} else {
|
||||
byParent[parent.ID] = []*Image{image}
|
||||
}
|
||||
})
|
||||
return byParent, err
|
||||
|
||||
Reference in New Issue
Block a user