summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-08-05 10:32:59 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-27 09:48:35 +0200
commitb4c0bd5c5ec6737792c410cb83d667a8a2ed812f (patch)
tree8aa382cf2e3d9d134d02b4531637c61555e3ff97 /ogcp
parent74e9ff99070e2ad2335ae9dadf3c02f2a5969ace (diff)
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")
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py2
1 files changed, 1 insertions, 1 deletions
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}