skipped_images None handling

skip the skipped_images loop when the combination is unknown,
or when the skiplist is empty.

Change-Id: Ia2dfbb1c80baeaa2eeb4720381e4da6c7b1c85af
This commit is contained in:
Attila Fazekas 2018-08-03 13:49:49 +02:00
parent 695d4d603d
commit 317b1e0fc7
1 changed files with 4 additions and 3 deletions

View File

@ -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."""