diff options
Diffstat (limited to 'ogcp')
-rw-r--r-- | ogcp/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index e0911b0..8e40ce6 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -1483,6 +1483,9 @@ def get_available_scopes(): responses = multi_request('get', '/scopes') available_scopes = list() for resp in responses: + servers = parse_scopes_from_tree(resp['json'], 'server') + servers = [(server['name'], server['name']) for server in servers] + available_scopes.extend(servers) centers = parse_scopes_from_tree(resp['json'], 'center') centers = [(center['name'], center['name']) for center in centers] available_scopes.extend(centers) |