From 80bbce0ba4f268489da9b6e7dcaa03f0da4c3102 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Fri, 27 Jun 2014 18:09:24 +0100 Subject: [sar] fix directory list variable name One dirList was missed in commit d4ebd07: Traceback (most recent call last): File "/usr/sbin/sosreport", line 23, in main(sys.argv[1:]) File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 1229, in main sos.execute() NameError: global name 'dirList' is not defined > /usr/lib/python2.7/site-packages/sos/plugins/sar.py(67)setup() -> if sar_filename not in dirList: Signed-off-by: Bryn M. Reeves --- sos/plugins/sar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/plugins/sar.py b/sos/plugins/sar.py index b86ae431..3ee96c16 100644 --- a/sos/plugins/sar.py +++ b/sos/plugins/sar.py @@ -64,7 +64,7 @@ class Sar(Plugin,): continue sa_data_path = os.path.join(self.sa_path, fname) sar_filename = 'sar' + fname[2:] - if sar_filename not in dirList: + if sar_filename not in dir_list: sar_cmd = 'sh -c "sar -A -f %s"' % sa_data_path self.add_cmd_output(sar_cmd, sar_filename) sadf_cmd = "sadf -x %s" % sa_data_path -- cgit