-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Connection doesn't respect/load project config #2264
Comments
The same also it will be very useful to provide a simple example in the documentation there nothing about |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The Connection class ignores the
ssh_config_path
from project-level fabric.yml-file. The config is loaded to context correctly, butConnection
does not pick it up.To Reproduce
We have a fabric.yml at project/task level that contains
ssh_config_path: resources/config
and we have a task defined as:The ssh-config at
resources/config
looks like:Expected behaviour
We expect fabric/Connection to logon as
root
with the given key file. Instead we get:If we pass the config from context explicitly to the Connection constructor the connection works fine:
Alternative, if we set
ssh_config_path: resources/config
in the~/.fabric.yml
file in our home directory it also works. It's only broken, if we define it in thefabric.yml
file that lays besides thefabfile.py
.Environment
The text was updated successfully, but these errors were encountered: