diff options
author | Nicolas Hennion <nicolashennion@gmail.com> | 2015-05-08 10:08:00 +0200 |
---|---|---|
committer | Nicolas Hennion <nicolashennion@gmail.com> | 2015-05-08 10:08:00 +0200 |
commit | 05ec8937c884ebadc23ba62276ade06214c3e6d7 (patch) | |
tree | 9d5411b0c7967c5c09cc6f1651cc11a761fddec7 | |
parent | 358bb45b4add77bf772aeded4b3e600e2c30814c (diff) | |
parent | 83801c4883ae29e40343e0fc255b48d76245c79b (diff) |
Merge pull request #580 from webworxshop/master
Fix influxdb export for 0.8.
-rw-r--r-- | glances/exports/glances_influxdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glances/exports/glances_influxdb.py b/glances/exports/glances_influxdb.py index 60b9c1ee..634b0772 100644 --- a/glances/exports/glances_influxdb.py +++ b/glances/exports/glances_influxdb.py @@ -20,7 +20,7 @@ """InfluxDB interface class.""" # Import sys libs -from influxdb import InfluxDBClient, client +from influxdb.influxdb08 import InfluxDBClient, client import sys # Import Glances lib @@ -80,7 +80,7 @@ class Export(GlancesExport): self.influxdb_password, self.influxdb_db) try: - get_all_db = db.get_database_list()[0].values() + get_all_db = [d['name'] for d in db.get_list_database()] except client.InfluxDBClientError as e: logger.critical("Can not connect to InfluxDB database '%s' (%s)" % (self.influxdb_db, e)) sys.exit(2) |