Fix dict.values() PY3 compatible

The dict.values()[0] will raise a TypeError in PY3
as dict.values() doesn't return a list any more in PY3
but a view of list.

TrivialFix.

Change-Id: I01297bb68e45db4d15800d2d42e08560da7346bd
This commit is contained in:
qinchunhua 2016-07-21 20:09:11 -04:00
parent 02b2280323
commit 9f596ffe4f

2
kolla/image/build.py Executable file → Normal file
View File

@ -846,7 +846,7 @@ class KollaWorker(object):
return
def list_children(images, ancestry):
children = ancestry.values()[0]
children = six.next(six.itervalues(ancestry))
for image in images:
if image.status not in [STATUS_MATCHED]:
continue