Legoktm has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/404999 )

Change subject: Fix "starting up" health check
......................................................................

Fix "starting up" health check

Change-Id: I62f0414489f374066ab5708d1d6af0eaec4fc7a8
---
M app.py
M templates/health.html
2 files changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/codesearch 
refs/changes/99/404999/1

diff --git a/app.py b/app.py
index 72fcae6..bb7fc17 100644
--- a/app.py
+++ b/app.py
@@ -120,7 +120,7 @@
                 else:
                     # No webservice, but hound is running, so it's probably
                     # just starting up still
-                    status['backend'] = 'starting up'
+                    status[backend] = 'starting up'
             except subprocess.CalledProcessError:
                 status[backend] = 'unknown'
 
diff --git a/templates/health.html b/templates/health.html
index 007c285..d2183de 100644
--- a/templates/health.html
+++ b/templates/health.html
@@ -8,7 +8,8 @@
 <h1>health check</h1>
 
 {% for backend in status %}
-<br /><a href="{{url_for('index', backend=backend)}}">{{backend}}</a> - 
{{status[backend]}}
+<a href="{{url_for('index', backend=backend)}}">{{backend}}</a> - 
{{status[backend]}}
+<br />
 {% endfor %}
 </body>
 </html>

-- 
To view, visit https://gerrit.wikimedia.org/r/404999
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I62f0414489f374066ab5708d1d6af0eaec4fc7a8
Gerrit-PatchSet: 1
Gerrit-Project: labs/codesearch
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to