From 73ceb2af32a9a77f568d618dc5d39ee9f48cb906 Mon Sep 17 00:00:00 2001
From: Sam Yaple <sam@yaple.net>
Date: Thu, 27 Aug 2015 12:35:19 +0000
Subject: [PATCH] Fixes matching issue build.py

And issue would occur when the namespace contained a partial amount
of the base distro's name causing the base and data images to assume
they had parent images in Kolla instead of setting thier parent to
None

Change-Id: I3b39a3e232c3faa77ee78d1ebb26b7da17bd4df4
Closes-Bug: #1489021
---
 kolla/cmd/build.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py
index d7d7c12e0f..9800333a06 100755
--- a/kolla/cmd/build.py
+++ b/kolla/cmd/build.py
@@ -422,7 +422,7 @@ class KollaWorker(object):
                 image['name'] + ':' + self.tag
             image['path'] = path
             image['parent_name'] = content.split(' ')[1].split('\n')[0]
-            if self.namespace not in image['parent_name']:
+            if not image['parent_name'].startswith(self.namespace + '/'):
                 image['parent'] = None
             image['children'] = list()
 
-- 
GitLab