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:
try:
image = self.queue.get()
for _ in range(self.retries):
for _ in range(self.retries + 1):
self.builder(image)
if image['status'] in ['built', 'unmatched',
'parent_error']: