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:
parent
e8a37b7c7f
commit
b2530cdd44
@ -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']:
|
||||||
|
Loading…
Reference in New Issue
Block a user