- Fix superuser panel for debugging

- Start work on the gauges panel
This commit is contained in:
Joseph Schorr 2015-02-17 11:31:50 -05:00
parent fbdbc21eb1
commit 79f39697fe
6 changed files with 40 additions and 14 deletions

View file

@ -50,6 +50,11 @@ class SuperUserRegistryStatus(ApiResource):
@verify_not_prod
def get(self):
""" Returns the status of the registry. """
if app.config.get('DEBUGGING', False):
return {
'status': 'ready'
}
# If there is no conf/stack volume, then report that status.
if not CONFIG_PROVIDER.volume_exists():
return {

View file

@ -26,10 +26,13 @@ def ps():
def generator():
while True:
builder_data = app.config['HTTPCLIENT'].get('http://localhost:8686/status', timeout=1)
build_status = {}
if builder_data.status_code == 200:
build_status = json.loads(builder_data.text)
try:
builder_data = app.config['HTTPCLIENT'].get('http://localhost:8686/status', timeout=1)
if builder_data.status_code == 200:
build_status = json.loads(builder_data.text)
except:
pass
data = {
'count': {