-
Notifications
You must be signed in to change notification settings - Fork 581
[report] Fix formatting of distros in plugins_overview #4071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[report] Fix formatting of distros in plugins_overview #4071
Conversation
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
I never used the plugins_overview in the past, so looking into it, there's probably other fixes we ought to do as well, as there are other issues too If the sos.report.plugins import is the only line, and then there is a comment/variables before the class deceleration, then we'll see the whole comment.
Either we update these plugins so that we don't have that, or we fix the plugins_overview.py; Personally, I wpuld lean towards fixing the plugins_overview.py thoughts? |
I agree, I think fixing plugins_overview.py may be the way to go. |
The formatting of the distros column was leaving the string 'Plu' when it found 'PluginOpt'. This fix explicitly deals with both 'PluginOpt' and 'Plugin' strings and removes them. Signed-off-by: Jose Castillo <[email protected]>
41c2aca
to
32602fe
Compare
This version should address the issues you found in the other plugins @arif-ali |
I just found one more scenario
You then get the following in the distros list
I found 2 scenarios of this, apologies I didn't find this one earlier |
No apologies needed at all @arif-ali , and thank you for taking the time to check this. |
@arif-ali I was thinking... it may be better to change the way we import in these two places (I've found kdump and release plugins, let me know if you found others) so it's consistent with the other plugins' imports of using parenthesis for multi-line imports? |
Change the format of the import line for plugins to parenthesis so it matches what we do in all other plugins that contain multiline imports. Also, this change ensures that the script plugins_overview.py's output is consistent across all plugins and doesn't contain errors. Related: sosreport#4071 Signed-off-by: Jose Castillo <[email protected]>
Change the format of the import line for plugins to parenthesis so it matches what we do in all other plugins that contain multiline imports. Also, this change ensures that the script plugins_overview.py's output is consistent across all plugins and doesn't contain errors. Related: #4071 Signed-off-by: Jose Castillo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now that the other PR is done, this should be all good now
The formatting of the distros column was leaving the string 'Plu' when it found 'PluginOpt'. This fix
explicitly deals with both 'PluginOpt' and 'Plugin' strings and removes them.
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines