[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 <jcastillo@redhat.com>
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 <jcastillo@redhat.com>
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 <jcastillo@redhat.com>
arif-ali
left a comment
There was a problem hiding this comment.
now that the other PR is done, this should be all good now
|
Merged via 82fc1a9. |
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