diff --git a/broker/binds/ssh2.py b/broker/binds/ssh2.py index c78f4b6..ce94383 100644 --- a/broker/binds/ssh2.py +++ b/broker/binds/ssh2.py @@ -182,7 +182,7 @@ def sftp_read(self, source, destination=None, return_data=False): captured_data += data if return_data: return captured_data - destination.write_bytes(data) + destination.write_bytes(captured_data) def sftp_write(self, source, destination=None, ensure_dir=True): """Sftp write a local file to a remote destination."""