Skip to content
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

Handle merging of string key_filename values from connect_kwargs #1924

Closed
wants to merge 1 commit into from

Conversation

kyleam
Copy link
Contributor

@kyleam kyleam commented Jan 7, 2019

Specifying a string value for connect_kwargs["key_filename"], as
described in Connection's docstring, fails when this value is merged
with a value from config.connect_kwargs or ssh_config. Convert string
values to the list form that resolve_connect_kwargs assumes.


I've used the 2.0 branch as the base because that's the default branch. Please let me know if it'd be better to use master.

Specifying a string value for connect_kwargs["key_filename"], as
described in Connection's docstring, fails when this value is merged
with a value from config.connect_kwargs or ssh_config.  Convert string
values to the list form that resolve_connect_kwargs assumes.
kyleam added a commit to kyleam/niceman that referenced this pull request Jan 7, 2019
A string is an acceptable form [*], but using a string rather than a
list leads to an error when fabric merges a configured IdentityFile
value from ssh_config (a fix is proposed in fabric/fabric#1924).

[*] http://docs.fabfile.org/en/2.4/api/connection.html#connect-kwargs-arg
@bitprophet
Copy link
Member

Cherry picked to 2.6 and up, then put a bunch of my own changes on top since this only fixed a single facet of the overall sloppiness in the relevant method 😇 it is much cleaner now. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants