Commit 86a496e3 authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Fix status page crash when service is in transient state being terminated

parent a94516a9
......@@ -48,6 +48,12 @@ class StatusEndpointWeb(ZoeRequestHandler):
services_per_node = {}
for node in stats['platform_stats']['nodes']:
services_per_node[node['name']] =['name'], backend_status='started')
for service in services_per_node[node['name']]:
if not in node['service_stats']:
node['service_stats'][] = {
'mem_limit': 0,
'core_limit': 0
max_service_count = max([len(services_per_node[name]) for name in services_per_node])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment