-
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
[collect] Using batch flag with password blocks requesting the ssh password #3839
Comments
options Using --batch --password together in sos-collect leads to an error: Unable to open remote session: unsupported operand type(s) for +: 'bool' and 'str' Related: sosreport#3839 Signed-off-by: Jose Castillo <[email protected]>
I managed to reproduce and get a call trace:
And send a PR with a possible fix. |
Using --batch --password together in sos-collect leads to an error: Unable to open remote session: unsupported operand type(s) for +: 'bool' and 'str' This PR attempts to catch the combination of options as early as possible and exit with an error message. Related: sosreport#3839 Signed-off-by: Jose Castillo <[email protected]>
@jcastill Given the man page output stating that |
Ah, I see. Let me rework this then |
I guess we either change the man page, or I change this: https://github.com/sosreport/sos/blob/main/sos/collector/__init__.py#L796
But it's late here so I may be misreading the code above. I'll do some tests and do a force push, considering the man page the source of truth. |
Using --batch --password together in sos-collect leads to an error: Unable to open remote session: unsupported operand type(s) for +: 'bool' and 'str' This PR removes the check for the batch option, enabling the prompt for password as specified in the man page: --batch Run in non-interactive mode. This will skip prompts for user input, with the exception of a prompt for the SSH password. Related: sosreport#3839 Signed-off-by: Jose Castillo <[email protected]>
SOS Version: sos-4.7.2-3.el9.noarch
Using
--batch --password
leads to an unsupported operand type(s) for +: 'bool' and 'str' error:This was found while using a fix for nested sudo in PR #3838
The text was updated successfully, but these errors were encountered: