mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-21 08:11:39 +03:00
repair the problem that when running 'glances --stdout-csv amps',report KeyError of amp plugin.
This commit is contained in:
parent
3286e83ee0
commit
e9a9c381b1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user