ssh: properly join chunks on python3

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-09-19 18:58:36 +03:00
parent 2b1ea1e4b9
commit 8d5675a92c
+1 -1
View File
@@ -152,7 +152,7 @@ class RemoteSSH(RemoteBase):
stderr.close()
if stdout.channel.recv_exit_status() != 0:
err = ''.join(stderr_chunks)
err = b''.join(stderr_chunks).decode('utf-8')
msg = 'SSH command \'{}\' failed: {}'.format(cmd, err)
raise DvcException(msg)