From ff3c2735e6b8e9fbb28f1bb8bab798cdea7f28c3 Mon Sep 17 00:00:00 2001 From: Valentin Chemiere Date: Tue, 17 Mar 2015 13:46:06 +0100 Subject: [PATCH] Fix flake8 --- external_file_location/tasks/sftp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/external_file_location/tasks/sftp.py b/external_file_location/tasks/sftp.py index 710ac18a..3e02564f 100644 --- a/external_file_location/tasks/sftp.py +++ b/external_file_location/tasks/sftp.py @@ -128,8 +128,8 @@ class SftpImportTask(SftpTask): def run(self): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - ssh_conn = ssh.connect(self.host, self.port, - username=self.user, password=self.pwd) + ssh.connect(self.host, self.port, + username=self.user, password=self.pwd) ftp_conn = ssh.open_sftp() path = self.path or '.' files_to_process = self._get_files(ftp_conn, path) @@ -168,8 +168,8 @@ class SftpExportTask(SftpTask): upload_directory = path or '.' ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - ssh.connect(self.host, self.port, - username=self.user, password=self.pwd) + ssh.connect(self.host, self.port, + username=self.user, password=self.pwd) ftp_conn = ssh.open_sftp() target_name = self._target_name(ftp_conn, upload_directory,