From dbc50ab246347b7d92c9d85b4f608264ba222afd Mon Sep 17 00:00:00 2001 From: Sajauddin Mohammad Date: Thu, 4 Aug 2016 05:44:48 -0400 Subject: [PATCH] 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 --- kolla/image/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kolla/image/build.py b/kolla/image/build.py index 090b28f4b5..f88f00a6d5 100644 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -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']