From 9f596ffe4f14c6a59ca5bf2feb152f41a8fbdb71 Mon Sep 17 00:00:00 2001 From: qinchunhua Date: Thu, 21 Jul 2016 20:09:11 -0400 Subject: [PATCH] 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 --- kolla/image/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 kolla/image/build.py diff --git a/kolla/image/build.py b/kolla/image/build.py old mode 100755 new mode 100644 index 99340fa9cd..ea781eba40 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -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