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
AttributeError: 'str' object has no attribute 'extend' when using custom connect_kwargs and key_filename option #2007
Comments
I'm seeing the same issue on 2.5. However, using a list works. |
Same problem. Looks like it could be a silly bug to me, so pinning to 2.4.0 till we hear more from upstream. |
I get the same problem when host is set to a DNS name. When set to an IP, the exception doesn't occur.
|
face_caches[self.face_img_paths[i].stem] = faces |
Someone else made a PR to change the docs in Sep 2019, but not merged yet (Feb 2020): #2014 |
This happens to me as well... and also, I think it would be important to be able to set if I only want to connect using the key_filename provided, instead of using the ssh_config info. |
It is an error in docs.
|
Providing key file name within list worked.. Thanks |
Documentation is still wrong, what an infuriating waste of 2 hours. lol |
i know it is quite frustrating but it is an open source so we need to be little patient with such issues.... Is there anything I can do to update document so others will not get frustrated with this...... |
#1924 is one stab at solving this. Will merge it or something based on it shortly. |
2.7.1 is out with the fix! |
When using a custom
connect_kwargs
with akey_filename
option, like so:I get an
AttributeError
:The documentation specifies that
key_filename
should be given as a string, but I found that it works if you actually give it a list:If this is the wanted syntax, I can update the documentation through a PR (see https://github.com/fabric/fabric/blob/2.0/fabric/connection.py#L234). Otherwise I could change
fabric/connection.py
to check whether there is already an entry, then transform it into a list if necessary.The text was updated successfully, but these errors were encountered: