aboutsummaryrefslogtreecommitdiff
path: root/kolla
diff options
context:
space:
mode:
authorJoshua Harlow <jxharlow@godaddy.com>2016-11-03 14:32:24 -0700
committerJoshua Harlow <jxharlow@godaddy.com>2016-11-07 17:08:01 -0800
commit27a16ccf76177413cc8f6c174eeb7dbff0a717a1 (patch)
tree666a1dae158f327a73c336d8089402a50c1bcc89 /kolla
parentda832be870cb269f9dea25eacdd5332ad912bfd1 (diff)
downloadkolla-27a16ccf76177413cc8f6c174eeb7dbff0a717a1.tar.gz
kolla-27a16ccf76177413cc8f6c174eeb7dbff0a717a1.zip
Skip queuing build tasks for UNMATCHED images
Closes-Bug: #1639989 Change-Id: I7bad2b784d2ac02a5af0d790ea32d35f90a681ec
Diffstat (limited to 'kolla')
-rw-r--r--kolla/image/build.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py
index 231824e85..a205e4bf2 100644
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -927,6 +927,11 @@ class KollaWorker(object):
queue = six.moves.queue.Queue()
for image in self.images:
+ if image.status == STATUS_UNMATCHED:
+ # Don't bother queuing up build tasks for things that
+ # were not matched in the first place... (not worth the
+ # effort to run them, if they won't be used anyway).
+ continue
if image.parent is None:
queue.put(BuildTask(self.conf, image, push_queue))
LOG.info('Added image %s to queue', image.name)