提交 afe22e84 编写于 作者: N nicolargo

Correct an issue with the latest InfluxDB module

上级 69553c7d
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册