aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/sar.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/sos/plugins/sar.py b/sos/plugins/sar.py
index 397af1db..b86ae431 100644
--- a/sos/plugins/sar.py
+++ b/sos/plugins/sar.py
@@ -37,17 +37,20 @@ class Sar(Plugin,):
for suffix in ('', '.*'):
self.add_copy_spec_limit(
os.path.join(self.sa_path, "sa[0-3][0-9]" + suffix),
- sizelimit = self.sa_size, tailit=False)
+ sizelimit = self.sa_size, tailit=False
+ )
self.add_copy_spec_limit(
os.path.join(self.sa_path, "sar[0-3][0-9]" + suffix),
- sizelimit = self.sa_size, tailit=False)
+ sizelimit = self.sa_size, tailit=False
+ )
+
try:
- dirList = os.listdir(self.sa_path)
+ dir_list = os.listdir(self.sa_path)
except:
self.log_warn("sar: could not list %s" % self.sa_path)
return
# find all the sa files that don't have an existing sar file
- for fname in dirList:
+ for fname in dir_list:
if fname.startswith('sar'):
continue
if not fname.startswith('sa'):