Skip to content

Commit

Permalink
[insights] collect insights-client dump
Browse files Browse the repository at this point in the history
Collect data of "insights-client --offline" into
sos_commands/insights/insights-client-dump directory.

Resolves: #2030

Signed-off-by: Pavel Moravec <[email protected]>
Signed-off-by: Jake Hunsaker <[email protected]>
  • Loading branch information
pmoravec authored and TurboTurtle committed Apr 21, 2020
1 parent e8b3804 commit 0766cc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sos/report/plugins/insights.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ def setup(self):
else:
self.add_copy_spec("/var/log/insights-client/insights-client.log")

# 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)

def postproc(self):
for conf in self.config:
self.do_file_sub(
Expand Down

0 comments on commit 0766cc7

Please sign in to comment.