Closed roynico closed 5 years ago
config.load_project() doesnt work as expected, or maybe I did not understand correctly. In my project I have a fabile.py with
fabile.py
from fabric2 import task, Connection @task def my_task(c): print(c.config) other_connection = Connection(host="my_host") print(other_connection.config) other_connection.config.load_project() print(other_connection.config)
In a config file fabric.json I have
fabric.json
{ "key": "MY_VALUE" }
Executing the command line
python -m fabric2 my_task
shows that the config is read from fabric.json when invoking the task, and passed to c.config, but it is not read when calling other_connection.config.load_project(). Did I miss something ?
c.config
other_connection.config.load_project()
I'm sorry, I posted in the wrong project ! Iopend a new one in the ocrrect place: https://github.com/fabric/fabric/issues/1909 And I will close this one.
config.load_project() doesnt work as expected, or maybe I did not understand correctly. In my project I have a
fabile.py
withIn a config file
fabric.json
I haveExecuting the command line
shows that the config is read from
fabric.json
when invoking the task, and passed toc.config
, but it is not read when callingother_connection.config.load_project()
. Did I miss something ?