We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 387ab6f commit 747f6c1Copy full SHA for 747f6c1
1 file changed
ted_sws/notice_publisher/adapters/sftp_notice_publisher.py
@@ -25,12 +25,16 @@ def connect(self):
25
"""Connects to the sftp server and returns the sftp connection object"""
26
27
try:
28
+ cnopts = pysftp.CnOpts()
29
+ # TODO: to be checked/removed when SSL will be setup
30
+ cnopts.hostkeys = None
31
# Get the sftp connection object
32
self.connection = pysftp.Connection(
33
host=self.hostname,
34
username=self.username,
35
password=self.password,
36
port=self.port,
37
+ cnopts=cnopts
38
)
39
except Exception as err:
40
raise Exception(err)
0 commit comments