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
This commit is contained in:
Sam Yaple 2015-08-27 12:35:19 +00:00
parent aada29b4db
commit 73ceb2af32

View File

@ -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()