From fe2c8e4fe169b7922b0f662dcdaf68a04e6c195a 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