aboutsummaryrefslogtreecommitdiff
path: root/kolla
diff options
context:
space:
mode:
authorKurt Taylor <kurt.r.taylor@gmail.com>2017-05-22 08:57:12 -0500
committerKurt Taylor <kurt.r.taylor@gmail.com>2017-05-22 08:59:27 -0500
commitd6fd6d8e04caf952018909e06113becf9f081930 (patch)
treeb0e01c5c2fc219cbab9f101f8a96bd5ecc899bdb /kolla
parent5e07d045a5207970a6b6b307ad76c44ac9de7591 (diff)
downloadkolla-d6fd6d8e04caf952018909e06113becf9f081930.tar.gz
kolla-d6fd6d8e04caf952018909e06113becf9f081930.zip
Fix inconsistent build task attempt logging
Change-Id: I5fee4782202fc8e5094b2be05e88f70706596078
Diffstat (limited to 'kolla')
-rwxr-xr-xkolla/image/build.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py
index 0d7e7ef82..1da8c970e 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -498,12 +498,8 @@ class WorkerThread(threading.Thread):
for attempt in six.moves.range(self.conf.retries + 1):
if self.should_stop:
break
- if attempt > 0:
- LOG.info("Attempting to run task %s for the %s time",
- task.name, attempt + 1)
- else:
- LOG.info("Attempting to run task %s for the first"
- " time", task.name)
+ LOG.info("Attempt number: %s to run task: %s ",
+ attempt + 1, task.name)
try:
task.run()
if task.success: