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

This commit is contained in:
netbuddy 2019-07-30 21:08:41 +08:00
parent 3286e83ee0
commit e9a9c381b1

View File

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