aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-04 20:30:36 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-04 20:30:36 +0000
commit248d4649cb38f313a1bafacb28cb048d08033f79 (patch)
tree644e8ad589d38501fbbbdda49312b7fbb4073e9d
parenta46a299771191cd4b07bc33874aa832ad0daf36e (diff)
downloadsos-248d4649cb38f313a1bafacb28cb048d08033f79.tar.gz
Shorten long lines in general module
-rw-r--r--sos/plugins/general.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/sos/plugins/general.py b/sos/plugins/general.py
index c7b67113..d83ddd70 100644
--- a/sos/plugins/general.py
+++ b/sos/plugins/general.py
@@ -40,15 +40,17 @@ class general(Plugin):
"/etc/exports",
"/root/anaconda-ks.cfg"])
+ limit = self.getOption("syslogsize")
self.collectExtOutput("/bin/dmesg", suggest_filename="dmesg_now")
- self.addCopySpecLimit("/var/log/messages*", sizelimit=self.getOption("syslogsize"))
- self.addCopySpecLimit("/var/log/secure*", sizelimit=self.getOption("syslogsize"))
+ self.addCopySpecLimit("/var/log/messages*", sizelimit = limit)
+ self.addCopySpecLimit("/var/log/secure*", sizelimit = limit)
self.collectExtOutput("/usr/bin/hostid")
self.collectExtOutput("/bin/hostname", root_symlink="hostname")
self.collectExtOutput("/bin/date", root_symlink="date")
self.collectExtOutput("/usr/bin/uptime", root_symlink="uptime")
self.collectExtOutput("/bin/dmesg")
- self.collectExtOutput("/usr/sbin/alternatives --display java", root_symlink="java")
+ self.collectExtOutput("/usr/sbin/alternatives --display java",
+ root_symlink="java")
self.collectExtOutput("/usr/bin/readlink -f /usr/bin/java")