From 317b1e0fc7efad423dbdb91861d17a227d08b860 Mon Sep 17 00:00:00 2001 From: Attila Fazekas Date: Fri, 3 Aug 2018 13:49:49 +0200 Subject: [PATCH] skipped_images None handling skip the skipped_images loop when the combination is unknown, or when the skiplist is empty. Change-Id: Ia2dfbb1c80baeaa2eeb4720381e4da6c7b1c85af --- kolla/image/build.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kolla/image/build.py b/kolla/image/build.py index b8c263c2c9..c974be9e84 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -979,9 +979,10 @@ class KollaWorker(object): skipped_images = SKIPPED_IMAGES.get('%s+%s' % (self.base, self.install_type)) - for image in self.images: - if image.name in skipped_images: - image.status = STATUS_UNMATCHED + if skipped_images: + for image in self.images: + if image.name in skipped_images: + image.status = STATUS_UNMATCHED def summary(self): """Walk the dictionary of images statuses and print results."""