Browse Source

skipped_images None handling

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

Change-Id: Ia2dfbb1c80baeaa2eeb4720381e4da6c7b1c85af
tags/7.0.0.0rc1
Attila Fazekas 10 months ago
parent
commit
317b1e0fc7
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      kolla/image/build.py

+ 4
- 3
kolla/image/build.py View File

@@ -979,9 +979,10 @@ class KollaWorker(object):
979 979
 
980 980
         skipped_images = SKIPPED_IMAGES.get('%s+%s' % (self.base,
981 981
                                                        self.install_type))
982
-        for image in self.images:
983
-            if image.name in skipped_images:
984
-                image.status = STATUS_UNMATCHED
982
+        if skipped_images:
983
+            for image in self.images:
984
+                if image.name in skipped_images:
985
+                    image.status = STATUS_UNMATCHED
985 986
 
986 987
     def summary(self):
987 988
         """Walk the dictionary of images statuses and print results."""

Loading…
Cancel
Save