-
Notifications
You must be signed in to change notification settings - Fork 345
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
'or' logic doesn't allow 'None' which evaluates as False. #798
Conversation
This means that "allow_agent" cannot be set to True based on the logic provided. Instead, check if the value exists in the dict, then set the value absolutely (even if it's "None") if set.
Autobot: Would an admin like to run functional tests? |
Can one of the admins verify this patch? |
This failed because paramiko returned "zero length field name in format", which is an old python2.6-ism with format strings. The failure wasn't with the patch itself. Paramiko updated about 12 days ago and paramiko 2.X no longer supports python 2.6 ( paramiko/paramiko#1070 ). I submitted a patch for this and Travis seems to have accepted it. Separately I agree with paramiko and think it's reasonable to drop python2.6 support, but that's not mine to decide. Please re-evaluate. |
@jjico Can you please explain how |
If you have a "Host *" entry in your ~/.ssh/config, then "self._conf_ssh_private_key_file" will be set to the sshkey provided there, paramiko correctly finds it for you. |
The issue remains but won't be resolved without a massive rebase. Closing this pull request without merging. |
This means that "allow_agent" cannot be set to True
based on the logic provided.
Instead: check if the value exists in the dict, then
use the value absolutely if set (even if it's "None").