Skips a debug log during image build

Added a condition to skip debug message during image build, when the 
base image is dependent on image of other service

Closes-Bug: #1513904. 
  
Change-Id: I68d568981cebf442b34c958e125b0f921b883247
This commit is contained in:
Sajauddin Mohammad 2016-08-04 05:44:48 -04:00 committed by Sajauddin
parent f4a9667767
commit dbc50ab246

@ -778,7 +778,9 @@ class KollaWorker(object):
installation = dict()
# NOTE(jeffrey4l): source is not needed when the type is None
if self.conf._get('type', self.conf._get_group(section)) is None:
LOG.debug('No source location found in section %s', section)
if image.parent_name is None:
LOG.debug('No source location found in section %s',
section)
else:
installation['type'] = self.conf[section]['type']
installation['source'] = self.conf[section]['location']