aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin André <m.andre@redhat.com>2015-11-10 17:27:37 +0900
committerMartin André <m.andre@redhat.com>2015-11-10 17:30:55 +0900
commitb2530cdd447093689233b27714b37cc9ce869373 (patch)
tree4b3342e6c6724aaf4899422cfa3271b8d0f6b0fe
parente8a37b7c7f84e989ad382abf883313b7e5461a8b (diff)
downloadkolla-b2530cdd447093689233b27714b37cc9ce869373.tar.gz
kolla-b2530cdd447093689233b27714b37cc9ce869373.zip
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
-rwxr-xr-xkolla/cmd/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py
index e299c66e1..4a8f4cd10 100755
--- a/kolla/cmd/build.py
+++ b/kolla/cmd/build.py
@@ -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']: