diff options
| author | Attila Fazekas <afazekas@redhat.com> | 2018-08-03 13:49:49 +0200 |
|---|---|---|
| committer | Attila Fazekas <afazekas@redhat.com> | 2018-08-03 13:51:27 +0200 |
| commit | 317b1e0fc7efad423dbdb91861d17a227d08b860 (patch) | |
| tree | 422e1ef2a7360d4002d427f60f7dd2af6a848f1b /kolla | |
| parent | 695d4d603d4b14a3a97b93bcfde5fb077f8b1900 (diff) | |
| download | kolla-317b1e0fc7efad423dbdb91861d17a227d08b860.tar.gz kolla-317b1e0fc7efad423dbdb91861d17a227d08b860.zip | |
skipped_images None handling
skip the skipped_images loop when the combination is unknown,
or when the skiplist is empty.
Change-Id: Ia2dfbb1c80baeaa2eeb4720381e4da6c7b1c85af
Diffstat (limited to 'kolla')
| -rwxr-xr-x | kolla/image/build.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py index b8c263c2c..c974be9e8 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.""" |
