aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/nscd.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/plugins/nscd.py b/sos/plugins/nscd.py
index 2a2ae909..a918cc21 100644
--- a/sos/plugins/nscd.py
+++ b/sos/plugins/nscd.py
@@ -30,10 +30,12 @@ class Nscd(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
def setup(self):
self.add_copy_spec("/etc/nscd.conf")
+ self.limit = (None if self.get_option("all_logs")
+ else self.get_option("log_size"))
opt = self.file_grep(r"^\s*logfile", "/etc/nscd.conf")
if (len(opt) > 0):
for o in opt:
f = o.split()
- self.add_copy_spec(f[1], sizelimit=self.get_option("log_size"))
+ self.add_copy_spec(f[1], sizelimit=self.limit)
# vim: set et ts=4 sw=4 :