johnchenghk01 commented on issue #4085: [AIRFLOW-3112] Fix SFTPHook deprecated option check URL: https://github.com/apache/incubator-airflow/pull/4085#issuecomment-432577963 Wait, in previous code, ``` # https://github.com/apache/incubator-airflow/blob/f80138486e7828ff64fa544b4032a445b2ca140a/airflow/contrib/hooks/sftp_hook.py if ignore_hostkey_verification == True => cnopts.hostkeys = None ``` ``` # https://github.com/apache/incubator-airflow/blob/a0489d09fe4b0d3a2e0893c9cfba0e379e79390b/airflow/contrib/hooks/sftp_hook.py # https://github.com/apache/incubator-airflow/blob/a0489d09fe4b0d3a2e0893c9cfba0e379e79390b/airflow/contrib/hooks/ssh_hook.py if ignore_hostkey_verification == True => no_host_key_check = True # inherit from SSHHook if no_host_key_check == True => cnopts.hostkeys = None ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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
