-
Notifications
You must be signed in to change notification settings - Fork 542
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
[ssh] Add User .ssh Config File Option #3298
[ssh] Add User .ssh Config File Option #3298
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. |
23299ec
to
8628e0a
Compare
is it worth adding the if statement before the function call for if self.get_option('userconfs'):
self.user_ssh_files_permissions() The function is not collecting anything else anyhow, but still doing some work; so I think this should be a better way imho |
sos/report/plugins/ssh.py
Outdated
@@ -18,6 +18,12 @@ class Ssh(Plugin, IndependentPlugin): | |||
plugin_name = 'ssh' | |||
profiles = ('services', 'security', 'system', 'identity') | |||
|
|||
option_list = [ | |||
PluginOpt('userconfs', default='True', val_type=str, |
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.
default
should be a boolean here, not a string. We do string conversion to bools from the CLI, but internally we should still be using the correct native type.
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.
fixed issue!
af10609
to
e033d8b
Compare
yea I agree with that change |
Ack to the change, but it looks like your commit message got a bit mangled in any fixup work. Let's set that back to what you had with the original |
9e674c1
to
ae105e5
Compare
Looks like the commit message got murky again in a follow up. To be clear - the commit title should be what is now on the first line ( |
Resolves issue SUPDEV-137. Adds a plugin option for the ssh module, defining whether it will or will not collect .ssh config files per user Default for new option is True Signed-off-by: Daniel Zhou <[email protected]>
ae105e5
to
32537bb
Compare
Apologies for that. Don't know why my git commits keep on getting messed up titles. Just fixed |
Resolves issue SUPDEV-137.
Adds a plugin option for the ssh module, defining whether it will or will not collect .ssh config files per user.
Default for new option is True
Signed-off-by: Daniel Zhou [email protected]
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines