Skip to content

Commit

Permalink
Install sosreport package
Browse files Browse the repository at this point in the history
Install the required packages for collecting sosreport

Signed-off-by: Vaishnavi Bhat <[email protected]>
  • Loading branch information
vaishnavibhat committed Oct 8, 2024
1 parent 0296a44 commit 875ce7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/OpTestUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2191,6 +2191,7 @@ def __gather_os_command_logs(self, list_of_commands=[], collect_sosreport=False,

if collect_sosreport:
if 'rhel' in self.distro_name():
host.host_run_command("yum install sos -y")
cmd = 'yes "" | sosreport'
str_msg = "Your sosreport has been generated and saved in:"
elif 'sles' in self.distro_name():
Expand Down

0 comments on commit 875ce7b

Please sign in to comment.