diff options
author | Ashish Humbe <ahumbe@redhat.com> | 2019-03-19 16:42:41 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-19 16:42:41 +0000 |
commit | 16efa607c90c32e3a3dd7d2935ea2cc661937945 (patch) | |
tree | a1e088b6230d1a4eeb8446dc6214add076344383 | |
parent | def34f54bc9cc80a9c661d8dbb7d1198b861ee84 (diff) | |
download | sos-16efa607c90c32e3a3dd7d2935ea2cc661937945.tar.gz |
[insights] update package names and paths
Resolves: #1426
Signed-off-by: Ashish Humbe <ahumbe@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/insights.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/sos/plugins/insights.py b/sos/plugins/insights.py index a175f6f8..f4fd542f 100644 --- a/sos/plugins/insights.py +++ b/sos/plugins/insights.py @@ -13,16 +13,24 @@ class RedHatInsights(Plugin, RedHatPlugin): '''Collect config and log for Red Hat Insights ''' plugin_name = 'insights' - packages = ['redhat-access-insights'] + packages = ['redhat-access-insights', 'insights-client'] profiles = ('system', 'sysmgmt') - conf_file = '/etc/redhat-access-insights/redhat-access-insights.conf' + config = ( + '/etc/insights-client/insights-client.conf', + '/etc/redhat-access-insights/redhat-access-insights.conf' + ) def setup(self): - self.add_copy_spec(self.conf_file) + self.add_copy_spec([ + self.config, + # Legacy log file location + "/var/log/redhat-access-insights/*.log" + ]) + if self.get_option("all_logs"): - self.add_copy_spec("/var/log/redhat-access-insights/*.log*") + self.add_copy_spec("/var/log/insights-client/*.log*") else: - self.add_copy_spec("/var/log/redhat-access-insights/*.log") + self.add_copy_spec("/var/log/insights-client/insights-client.log") def postproc(self): self.do_file_sub( |