From afe22e84f04817e935dce5714a515d6ded1ca068 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Fri, 8 May 2015 10:41:54 +0200 Subject: [PATCH] Correct an issue with the latest InfluxDB module --- glances/exports/glances_export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glances/exports/glances_export.py b/glances/exports/glances_export.py index 716a2d09..0319281f 100644 --- a/glances/exports/glances_export.py +++ b/glances/exports/glances_export.py @@ -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)