diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2018-06-21 20:02:00 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-06-21 20:09:52 +0100 |
commit | 2d4ab4c925d8283b3e04846e9e4bd8da1783031a (patch) | |
tree | 3ace62dfac43a214223bb51b3d19ccfce323be96 /.gitignore | |
parent | 91d411766d0e315ae97fb5aebdf03865ccdb6e0a (diff) | |
download | sos-2d4ab4c925d8283b3e04846e9e4bd8da1783031a.tar.gz |
[logs] fix RedHatLogs syslog/journal handling
Fix the detection of syslog logs in RedHatLogs.setup() by storing
the absolute path ("/var/log/messages"), and using this to detect
the presence of the path with os.path.exists() and append the "*"
in-place when making the add_copy_spec() call.
Also improve the readability of the method and use an explicit
variable, "have_messages", to indicate pressence of syslog style
logs.
Resolves: #1312
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions