aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2020-05-12 09:58:26 +0200
committerBryan Quigley <bryan.quigley@canonical.com>2020-05-12 09:12:28 -0700
commitf41a12032d1b0caf962145ddd5026b3798931026 (patch)
tree6a2f9ac5014135ec8149d2452dfd5e5890e2acd4
parent46bf32196b3a867138682c0104f17312ace55bb2 (diff)
downloadsos-f41a12032d1b0caf962145ddd5026b3798931026.tar.gz
[insights] collect insights dump output in deterministic filename
Currently, "insights-client --offline" stdout is stored in filename like insights-client_--offline_--output-dir_.var.tmp.sos.cbl0ox16. (and so on) Let make the filename unified and deterministic. Also add the trailing vim expand tabs comment. Resolves: #2058 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
-rw-r--r--sos/report/plugins/insights.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sos/report/plugins/insights.py b/sos/report/plugins/insights.py
index 75d521bc..e50bc8fb 100644
--- a/sos/report/plugins/insights.py
+++ b/sos/report/plugins/insights.py
@@ -33,7 +33,8 @@ class RedHatInsights(Plugin, RedHatPlugin):
# Collect insights-client report data into given dump dir
path = self.get_cmd_output_path(name="insights-client-dump")
- self.add_cmd_output("insights-client --offline --output-dir %s" % path)
+ self.add_cmd_output("insights-client --offline --output-dir %s" % path,
+ suggest_filename="insights-client-dump.log")
def postproc(self):
for conf in self.config:
@@ -44,3 +45,5 @@ class RedHatInsights(Plugin, RedHatPlugin):
self.do_file_sub(
conf, r'(proxy[\t\ ]*=.*)(:)(.*)(@.*)', r'\1\2********\4'
)
+
+# vim: set et ts=4 sw=4 :