Commit 28019db4 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: API-fy inspectInstance

parent 0d084fb6
...@@ -181,6 +181,14 @@ def inspectInstance(): ...@@ -181,6 +181,14 @@ def inspectInstance():
else: else:
file_path = '' file_path = ''
supervisor = [] supervisor = []
if "application/json" in request.accept_mimetypes.best:
result_list = []
for service in supervisor:
result_list.append({
'service_name': service[0],
'status': service[1],
})
return jsonify(result_list)
return render_template('instanceInspect.html', return render_template('instanceInspect.html',
file_path=file_path, file_path=file_path,
supervisor=supervisor, supervisor=supervisor,
......
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