aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-06-21 14:45:05 +0100
committerBryn M. Reeves <bmr@redhat.com>2014-06-21 14:45:05 +0100
commitd4ebd07d852c47149bb6e948bdc64d4896128390 (patch)
tree6b974199b7c922fa2b3199473b80f463bbc13501
parent6090afe454eb34469492269ab45e7a437740eb0e (diff)
downloadsos-d4ebd07d852c47149bb6e948bdc64d4896128390.tar.gz
[sar] minor style fixes
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-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'):