aboutsummaryrefslogtreecommitdiff
path: root/kolla
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-01-07 08:41:39 +0000
committerGerrit Code Review <review@openstack.org>2016-01-07 08:41:39 +0000
commit90e178b57ec6d83464b997d783db87da3b85e328 (patch)
tree51c947ac4d1b7005b46d7a067d8e46749e8db38b /kolla
parentc1fca2721187bf17b21f1608e6d57b4663fd6ba5 (diff)
parent7137212ab24c032311906aa774c057b3e8929971 (diff)
downloadkolla-90e178b57ec6d83464b997d783db87da3b85e328.tar.gz
kolla-90e178b57ec6d83464b997d783db87da3b85e328.zip
Merge "Log information about successful push only if it really is"
Diffstat (limited to 'kolla')
-rwxr-xr-xkolla/cmd/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py
index 96a7a5e5d..5a54e79eb 100755
--- a/kolla/cmd/build.py
+++ b/kolla/cmd/build.py
@@ -89,13 +89,14 @@ class PushThread(Thread):
image = self.queue.get()
LOG.debug('%s:Try to push the image', image['name'])
self.push_image(image)
- LOG.info('%s:Pushed successfully', image['name'])
except ConnectionError:
LOG.exception('%s:Make sure Docker is running and that you'
' have the correct privileges to run Docker'
' (root)', image['name'])
image['status'] = "connection_error"
finally:
+ if "error" not in image['status']:
+ LOG.info('%s:Pushed successfully', image['name'])
self.queue.task_done()
def push_image(self, image):