aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2014-03-03 13:56:23 +0000
committerBryn M. Reeves <bmr@redhat.com>2014-03-03 13:56:23 +0000
commit3dac227dde7af1168fa3c668836d7dde711981bd (patch)
tree7f8d1fa1a095add8e14cfd8c3a7b7a71dfe0d103
parentfec14d2d9e0114e959d9626ca1457cd578c1d029 (diff)
downloadsos-3dac227dde7af1168fa3c668836d7dde711981bd.tar.gz
Replace package check with file check in anacron
The anacron facility may be provided by packages named 'anacron', 'chronie-anacron' etc. They all use a common /etc/anacrontab file so check for this instead. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/anacron.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sos/plugins/anacron.py b/sos/plugins/anacron.py
index a60c85e1..e9595a8e 100644
--- a/sos/plugins/anacron.py
+++ b/sos/plugins/anacron.py
@@ -21,7 +21,9 @@ class Anacron(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
plugin_name = 'anacron'
- packages = ('anacron',)
+ # anacron may be provided by anacron, cronie-anacron etc.
+ # just look for the configuration file which is common
+ files = ('/etc/anacrontab',)
def setup(self):
- self.add_copy_spec("/etc/anacrontab")
+ self.add_copy_specs(list(self.files))