From b4c0bd5c5ec6737792c410cb83d667a8a2ed812f Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 5 Aug 2022 10:32:59 +0200 Subject: 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") --- ogcp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogcp/views.py b/ogcp/views.py index ffa890d..dde7941 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -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} -- cgit v1.2.3-18-g5258