diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-08-03 16:39:53 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-08-03 16:43:33 +0100 |
commit | b3faad3f82ee1f735e2221bb2f39b8b8aeaf0e86 (patch) | |
tree | 3aab2c2280b38188742ce0a614697163aeb88f21 | |
parent | 4d8b5418b1cf218ef9746674ca5935a7f4f3983e (diff) | |
download | sos-b3faad3f82ee1f735e2221bb2f39b8b8aeaf0e86.tar.gz |
[logs] fix reference to missing 'rsyslog_conf' variable
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/logs.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py index 7957898e..70ef5373 100644 --- a/sos/plugins/logs.py +++ b/sos/plugins/logs.py @@ -42,6 +42,7 @@ class Logs(Plugin): logs = self.do_regex_find_all("^\S+\s+(-?\/.*$)\s+", syslog_conf) if self.is_installed("rsyslog") \ or os.path.exists("/etc/rsyslog.conf"): + rsyslog_conf = self.join_sysroot("/etc/rsyslog.conf") logs += self.do_regex_find_all("^\S+\s+(-?\/.*$)\s+", rsyslog_conf) for i in logs: |