diff --git a/kolla/image/build.py b/kolla/image/build.py
old mode 100755
new mode 100644
index 99340fa9cdc515ee6938c3500e4f9fd32e3d7304..ea781eba40896133bd9a84f76d8a28b7d558c981
--- 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