From e9a9c381b150ddc484e5c3f953864c99f3c0cfc3 Mon Sep 17 00:00:00 2001 From: netbuddy Date: Tue, 30 Jul 2019 21:08:41 +0800 Subject: [PATCH] repair the problem that when running 'glances --stdout-csv amps',report KeyError of amp plugin. --- glances/outputs/glances_stdout_csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/outputs/glances_stdout_csv.py b/glances/outputs/glances_stdout_csv.py index 1fcafd3b..7fd34a1f 100644 --- a/glances/outputs/glances_stdout_csv.py +++ b/glances/outputs/glances_stdout_csv.py @@ -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: