summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Fazekas <afazekas@redhat.com>2018-08-03 13:49:49 +0200
committerAttila Fazekas <afazekas@redhat.com>2018-08-03 13:51:27 +0200
commit317b1e0fc7efad423dbdb91861d17a227d08b860 (patch)
tree422e1ef2a7360d4002d427f60f7dd2af6a848f1b
parent695d4d603d4b14a3a97b93bcfde5fb077f8b1900 (diff)
skipped_images None handling
skip the skipped_images loop when the combination is unknown, or when the skiplist is empty. Change-Id: Ia2dfbb1c80baeaa2eeb4720381e4da6c7b1c85af
Notes
Notes (review): Code-Review+1: Jon Schlueter <jschluet@redhat.com> Code-Review+2: Jeffrey Zhang <zhang.lei.fly@gmail.com> Code-Review+2: Surya Prakash (spsurya) <singh.surya64mnnit@gmail.com> Workflow+1: Surya Prakash (spsurya) <singh.surya64mnnit@gmail.com> Code-Review+2: Martin André <m.andre@redhat.com> Workflow+1: Martin André <m.andre@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 07 Aug 2018 13:17:04 +0000 Reviewed-on: https://review.openstack.org/588518 Project: openstack/kolla Branch: refs/heads/master
-rwxr-xr-xkolla/image/build.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py
index b8c263c..c974be9 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -979,9 +979,10 @@ class KollaWorker(object):
979 979
980 skipped_images = SKIPPED_IMAGES.get('%s+%s' % (self.base, 980 skipped_images = SKIPPED_IMAGES.get('%s+%s' % (self.base,
981 self.install_type)) 981 self.install_type))
982 for image in self.images: 982 if skipped_images:
983 if image.name in skipped_images: 983 for image in self.images:
984 image.status = STATUS_UNMATCHED 984 if image.name in skipped_images:
985 image.status = STATUS_UNMATCHED
985 986
986 def summary(self): 987 def summary(self):
987 """Walk the dictionary of images statuses and print results.""" 988 """Walk the dictionary of images statuses and print results."""