Correct an issue with the latest InfluxDB module

This commit is contained in:
nicolargo
2015-05-08 10:41:54 +02:00
parent 69553c7dbd
commit afe22e84f0

View File

@@ -85,7 +85,8 @@ class GlancesExport(object):
for i, plugin in enumerate(plugins):
if plugin in self.plugins_to_export():
if type(all_stats[i]) is list:
for item in (all_stats[i] + all_limits[i]):
for item in all_stats[i]:
item.update(all_limits[i])
export_names = list(map(lambda x: item[item['key']] + '.' + x, item.keys()))
export_values = list(item.values())
self.export(plugin, export_names, export_values)