diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2013-04-26 17:53:58 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2013-04-26 17:53:58 +0100 |
commit | d54af2c1734f5d7e17cc18f31515ec96de5f98c6 (patch) | |
tree | 7ac4a7ef0687281b2cbe58cc8c4b87a23c55fc91 | |
parent | cdf5ab45e46c33504f0f0ff6b92fa972208974d3 (diff) | |
download | sos-d54af2c1734f5d7e17cc18f31515ec96de5f98c6.tar.gz |
Rename printing plug-in and add check for cups package
The 'printing' plug-in is almost entirely cups-specific (the
lpstat invocations would work with another lp implementation but
that's fairly unlikely..). Add a check for the package and rename
the module to cups.py.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/cups.py (renamed from sos/plugins/printing.py) | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/plugins/printing.py b/sos/plugins/cups.py index 30161fc9..aaa3971e 100644 --- a/sos/plugins/printing.py +++ b/sos/plugins/cups.py @@ -20,6 +20,7 @@ class Printing(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): plugin_name = 'printing' + packages = ('cups',) option_list = [("cups", "max size (MiB) to collect per cups log file", "", 15)] @@ -28,7 +29,8 @@ class Printing(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): "/etc/cups/*.conf", "/etc/cups/lpoptions", "/etc/cups/ppd/*.ppd"]) - self.add_copy_spec_limit("/var/log/cups", sizelimit=self.option_enabled("cupslogsize")) + self.add_copy_spec_limit("/var/log/cups", + sizelimit=self.option_enabled("cupslogsize")) self.add_cmd_output("lpstat -t") self.add_cmd_output("lpstat -s") self.add_cmd_output("lpstat -d") |