From 1db12230f94c33c8d701f4af5ea3fd48e76c4dad Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 9 Sep 2022 09:28:10 +0200 Subject: Adapt Delete clients to work with several ogServers This commit makes Delete clients view to use "get_server_from_clients()" function to send the deletion request to the correct ogServer. --- ogcp/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') -- cgit v1.2.3-18-g5258