Skip to content

Commit

Permalink
Merge pull request #90 from plesk/add_kernel_modules_into_feedback
Browse files Browse the repository at this point in the history
Add a function to gather kernel modules for the feedback archive
  • Loading branch information
SandakovMM authored Oct 24, 2024
2 parents e641e17 + 34cc659 commit 49d356f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pleskdistup/common/src/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,12 @@ def collect_plesk_version(out_file_path: str = "plesk_version.txt") -> typing.Li
version_file.write(lines + "\n")

return [out_file_path]


def collect_kernel_modules(out_file_path: str = "kernel_modules.txt") -> typing.List[str]:
_collect_command_output(
["/usr/sbin/lsmod"],
out_file_path,
"Getting kernel modules (called as {args}) failed: {ex}\n",
)
return [out_file_path]

0 comments on commit 49d356f

Please sign in to comment.