print err, out

pull/1/head
Nguyen Huu Thuong 6 years ago
parent 836a9eeb35
commit 1c141c3eda

@ -82,9 +82,13 @@ def ssh_process(ssh, input_ssh):
err = "".join(stderr.readlines())
err = err.strip() if err is not None else None
if err:
raise Exception(f"SSH failed:\n{err}")
print(f"Error: \n{err}")
out = "".join(stdout.readlines())
out = out.strip() if out is not None else None
if out:
print(f"Success: \n{out}")
print("".join(stdout.readlines()))
pass

Loading…
Cancel
Save