summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
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')