mik-laj commented on a change in pull request #9879:
URL: https://github.com/apache/airflow/pull/9879#discussion_r519460158
##########
File path: airflow/providers/ssh/operators/ssh.py
##########
@@ -89,7 +90,8 @@ def execute(self, context) -> Union[bytes, str, bool]:
self.log.info(
"ssh_hook is not provided or invalid. " "Trying
ssh_conn_id to create SSHHook."
)
- self.ssh_hook = SSHHook(ssh_conn_id=self.ssh_conn_id,
timeout=self.timeout)
+ self.ssh_hook = BaseHook.get_connection(self.ssh_conn_id)
Review comment:
I have revert this change. I will deal with it in a separate PR.
----------------------------------------------------------------
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]