Fix --retries option to kolla-build

Off by one error made the --retries option control the number of tries
rather than the number of retries.

Closes-Bug: #1514730
backport: Liberty

Change-Id: I976a8bb9e489d226f44926a6562d4d2af5de099c
This commit is contained in:
Martin André 2015-11-10 17:27:37 +09:00
parent e8a37b7c7f
commit b2530cdd44

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']: