Skip to content
Snippets Groups Projects
Commit a45dc94e authored by Joshua Harlow's avatar Joshua Harlow
Browse files

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
parent 47986293
No related branches found
No related tags found
No related merge requests found
......@@ -809,15 +809,15 @@ class KollaWorker(object):
def list_children(images, ancestry):
children = ancestry.values()[0]
for item in images:
if item.status not in [STATUS_MATCHED]:
for image in images:
if image.status not in [STATUS_MATCHED]:
continue
if not item.children:
children.append(item.name)
if not image.children:
children.append(image.name)
else:
newparent = {item.name: []}
newparent = {image.name: []}
children.append(newparent)
list_children(item.children, newparent)
list_children(image.children, newparent)
ancestry = {base.name: []}
list_children(base.children, ancestry)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment