Fix ogServer names on the scopes tree

This commit adapt how "get_scopes()" accesses the name of the ogServer
because commit eae64dd changes how "multi_request()" returns it.

Fixes: eae64dd ("Initial support of ogServer requests routing")
async-tree
Javier Sánchez Parra 2022-08-05 10:32:59 +02:00
parent 74e9ff9907
commit b4c0bd5c5e
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ def get_scopes(ips=set()):
for r in responses:
scopes = r['json']
server_scope = {}
server_scope['name'] = r['server']
server_scope['name'] = r['server'].name
server_scope.update(scopes)
list_scopes.append(server_scope)
all_scopes = {'scope': list_scopes}