Merge "Fix --retries option to kolla-build"

This commit is contained in:
Jenkins 2015-11-12 10:43:10 +00:00 committed by Gerrit Code Review
commit 336074a6c3

View File

@ -74,7 +74,7 @@ class WorkerThread(Thread):
while True: while True:
try: try:
image = self.queue.get() image = self.queue.get()
for _ in range(self.retries): for _ in range(self.retries + 1):
self.builder(image) self.builder(image)
if image['status'] in ['built', 'unmatched', if image['status'] in ['built', 'unmatched',
'parent_error']: 'parent_error']: