aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-06-27 18:09:24 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-06-30 19:48:42 +0100
commit80bbce0ba4f268489da9b6e7dcaa03f0da4c3102 (patch)
treefd3d850090575e6f920d7de3e5826cb4d380b879
parent797166abec941a8e255567acff674f6c437ea12e (diff)
downloadsos-80bbce0ba4f268489da9b6e7dcaa03f0da4c3102.tar.gz
[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 <module> 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 <bmr@redhat.com>
-rw-r--r--sos/plugins/sar.py2
1 files changed, 1 insertions, 1 deletions
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