Skip to content

Commit f487e0e

Browse files
Grégory Starckaviau
authored andcommitted
Proposed Fix: expand the ResultSet response by using list() on it.
Other solution is to return the ResultSet instance but then we must adapt all call sites.. To be decided..
1 parent 8ba6ad1 commit f487e0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

influxdb/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,13 @@ def get_list_series(self, database=None):
362362
rsp = self.query("SHOW SERIES", database=database)
363363
print "RSP", rsp.raw
364364
print "RSP", rsp['results']
365-
return rsp
365+
return list(rsp)
366366

367367
def get_list_users(self):
368368
"""
369369
Get the list of users
370370
"""
371-
return self.query("SHOW USERS")
371+
return list(self.query("SHOW USERS"))
372372

373373
def delete_series(self, name, database=None):
374374
database = database or self._database

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy