mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
utils/ssh: Fix paramiko streams
Ensure that we use the input stream for reading.
This commit is contained in:
parent
7065847f77
commit
3af3463c3c
@ -691,11 +691,11 @@ class SshConnection(SshConnectionBase):
|
|||||||
w = os.fdopen(w, 'wb')
|
w = os.fdopen(w, 'wb')
|
||||||
# Turn a file descriptor into a file-like object
|
# Turn a file descriptor into a file-like object
|
||||||
elif isinstance(stream_out, int) and stream_out >= 0:
|
elif isinstance(stream_out, int) and stream_out >= 0:
|
||||||
r = os.fdopen(stream_out, 'rb')
|
r = os.fdopen(stream_in, 'rb')
|
||||||
w = os.fdopen(stream_out, 'wb')
|
w = os.fdopen(stream_out, 'wb')
|
||||||
# file-like object
|
# file-like object
|
||||||
else:
|
else:
|
||||||
r = stream_out
|
r = stream_in
|
||||||
w = stream_out
|
w = stream_out
|
||||||
|
|
||||||
return (r, w)
|
return (r, w)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user