aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")