diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2014-03-27 11:40:40 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2014-03-27 11:40:40 +0000 |
commit | 1bd31b763a11f15c89b1e2ae16788867ff62a84e (patch) | |
tree | 63f5edc3d834e24f03d8d7876cc216b3b725ee7e | |
parent | 3f742644ebbf27b7b024a2f7061c347196312308 (diff) | |
download | sos-1bd31b763a11f15c89b1e2ae16788867ff62a84e.tar.gz |
Replace self.policy().pkg_by_name() us in Logs plugin
Use self.is_installed() for simple package presence tests.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/logs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py index 1cd767c9..318377d1 100644 --- a/sos/plugins/logs.py +++ b/sos/plugins/logs.py @@ -40,7 +40,7 @@ class Logs(Plugin): if self.get_option('all_logs'): logs = self.do_regex_find_all("^\S+\s+(-?\/.*$)\s+", "/etc/syslog.conf") - if self.policy().pkg_by_name("rsyslog") \ + if self.is_installed("rsyslog") \ or os.path.exists("/etc/rsyslog.conf"): logs += self.do_regex_find_all("^\S+\s+(-?\/.*$)\s+", "/etc/rsyslog.conf") for i in logs: |