potiuk commented on a change in pull request #7088: [WIP][AIRFLOW-6494] SSH
host_proxy has to be fresh
URL: https://github.com/apache/airflow/pull/7088#discussion_r365561814
##########
File path: airflow/contrib/hooks/ssh_hook.py
##########
@@ -90,14 +90,10 @@ def __init__(self,
# Use connection to override defaults
if self.ssh_conn_id is not None:
conn = self.get_connection(self.ssh_conn_id)
- if self.username is None:
- self.username = conn.login
- if self.password is None:
- self.password = conn.password
- if self.remote_host is None:
- self.remote_host = conn.host
- if self.port is None:
- self.port = conn.port
+ self.username = conn.login
Review comment:
I think this should not be changed (and BTW the comment above is wrong).
It's the username/password/host/port if specified override the connection, not
the other way round. And that's intended behaviour.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services