File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/aleph/vm/orchestrator/views Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -160,9 +160,10 @@ async def debug_haproxy(request: web.Request) -> web.Response:
160
160
if not pathlib .Path (socket ).exists ():
161
161
logger .info ("HAProxy not running? socket not found, skip domain mapping update" )
162
162
return web .json_response ({"status" : "no socket" }, status = http .HTTPStatus )
163
- r : dict = {"status" : "ok" , "backends" : {}}
163
+ r : dict = {"status" : "ok" , "backends" : {}, "mappings" : {} }
164
164
for backend in haproxy .HAPROXY_BACKENDS :
165
165
r ["backends" ][str (backend ["name" ])] = haproxy .get_current_backends (socket , backend ["name" ])
166
+ r ["mappings" ][backend ["name" ]] = haproxy .get_current_mappings (socket , backend ["map_file" ])
166
167
return web .json_response (
167
168
r ,
168
169
dumps = dumps_for_json ,
You can’t perform that action at this time.
0 commit comments