From b2530cdd447093689233b27714b37cc9ce869373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Tue, 10 Nov 2015 17:27:37 +0900 Subject: [PATCH] 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 --- kolla/cmd/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index e299c66e16..4a8f4cd100 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']: