Skip to content

Commit

Permalink
[AIRFLOW-1107] Add support for ftps non-default port
Browse files Browse the repository at this point in the history
Closes apache#2240 from jesusfcr/ftps
  • Loading branch information
Jesús Carpintero authored and bolkedebruin committed Apr 17, 2017
1 parent 4fb05d8 commit 4d0c2f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions airflow/contrib/hooks/ftp_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,12 @@ def get_conn(self):
"""
if self.conn is None:
params = self.get_connection(self.ftp_conn_id)

if params.port:
ftplib.FTP_TLS.port=params.port

self.conn = ftplib.FTP_TLS(
params.host, params.login, params.password
)

return self.conn

0 comments on commit 4d0c2f6

Please sign in to comment.