Commit 1f0e4658 authored by 金凯强's avatar 金凯强 🎨

编码修复

parent 7ab99820
......@@ -36,8 +36,8 @@ class SSHConnect():
raise RuntimeError('请先连接')
# 执行命令并获取执行结果
stdin, stdout, stderr = self.ssh.exec_command(command)
out = stdout.read()
err = stderr.read()
out = stdout.read().decode()
err = stderr.read().decode()
return out, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment