summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-09 09:28:10 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-09-09 09:28:10 +0200
commitfe2c8e4fe169b7922b0f662dcdaf68a04e6c195a (patch)
tree85c7d301b22411518adbb763d9de077654e0212b /ogcp
parentdcbba3a91297d988c39bbf2447942c19feb6631b (diff)
Adapt Delete clients to work with several ogServersmulti-ogserver
This commit makes Delete clients view to use "get_server_from_clients()" function to send the deletion request to the correct ogServer.
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 84bf0e1..dc2a3c2 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -983,7 +983,8 @@ def action_client_delete():
return redirect(url_for('scopes'))
payload = {'clients': ips}
- r = g.server.post('/client/delete', payload)
+ server = get_server_from_clients(ips)
+ r = server.post('/client/delete', payload)
if r.status_code != requests.codes.ok:
flash(_('ogServer: error deleting client'),
category='error')