Fixes an error with the SSH client's logging
* Currently if you're running transfer_file_to or retrieve_file_from and receive an IOError you receive a keyerror because the string that is being formatted has a key of error and the key is not being passed in to the .format Change-Id: I739e877b84d60c998b60bacb3c6f64f64b1d5c66
This commit is contained in:
@@ -445,7 +445,7 @@ class SSHClient(BaseSSHClient):
|
||||
sftp_conn.put(local_path, remote_path)
|
||||
except IOError, exception:
|
||||
self._log.warning("Error during file transfer: {error}".format(
|
||||
exception))
|
||||
error=exception))
|
||||
return False
|
||||
else:
|
||||
sftp_conn.close()
|
||||
@@ -468,7 +468,7 @@ class SSHClient(BaseSSHClient):
|
||||
sftp_conn.get(remote_path, local_path)
|
||||
except IOError, exception:
|
||||
self._log.warning("Error during file transfer: {error}".format(
|
||||
exception))
|
||||
error=exception))
|
||||
return False
|
||||
else:
|
||||
sftp_conn.close()
|
||||
|
||||
Reference in New Issue
Block a user