提交 e9a9c381 编写于 作者: N netbuddy

repair the problem that when running 'glances --stdout-csv amps',report KeyError of amp plugin.

上级 3286e83e
......@@ -77,7 +77,7 @@ class GlancesStdoutCsv(object):
if isinstance(i, dict) and 'key' in i:
for k in i.keys():
line += '{}.{}.{}{}'.format(plugin,
str(i[i['key']]),
str(i['key']),
str(k),
self.separator)
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册