Use 'image' not 'item'
The things in self.images are images, not items so reflect these to use the shared 'image' name vs having a one-off that uses 'item'. TrivalFix Change-Id: I781514d3e116de32b4fe61a7f55455282680fec1
This commit is contained in:
parent
479862932c
commit
a45dc94e8c
@ -809,15 +809,15 @@ class KollaWorker(object):
|
|||||||
|
|
||||||
def list_children(images, ancestry):
|
def list_children(images, ancestry):
|
||||||
children = ancestry.values()[0]
|
children = ancestry.values()[0]
|
||||||
for item in images:
|
for image in images:
|
||||||
if item.status not in [STATUS_MATCHED]:
|
if image.status not in [STATUS_MATCHED]:
|
||||||
continue
|
continue
|
||||||
if not item.children:
|
if not image.children:
|
||||||
children.append(item.name)
|
children.append(image.name)
|
||||||
else:
|
else:
|
||||||
newparent = {item.name: []}
|
newparent = {image.name: []}
|
||||||
children.append(newparent)
|
children.append(newparent)
|
||||||
list_children(item.children, newparent)
|
list_children(image.children, newparent)
|
||||||
|
|
||||||
ancestry = {base.name: []}
|
ancestry = {base.name: []}
|
||||||
list_children(base.children, ancestry)
|
list_children(base.children, ancestry)
|
||||||
|
Loading…
Reference in New Issue
Block a user