summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ogcp/views.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index a26ad55..fe17528 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -117,10 +117,18 @@ def get_client_setup(ip):
return db_partitions
def get_clients(state_filter=None):
- r = g.server.get('/clients')
- clients = r.json()
+ responses = multi_request('get', '/clients')
+
+ clients_list = []
+ for r in responses:
+ clients_list = clients_list + r['json']['clients']
+
+ clients = {}
+ clients['clients'] = clients_list
+
if state_filter:
return filter(clients.items(), lambda c: c.state == state_filter)
+
return clients