Fix influxdb export for 0.8.

This commit is contained in:
Rob Connolly 2015-05-08 10:26:20 +12:00
parent 358bb45b4a
commit 83801c4883

View File

@ -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)