print err, out
parent
836a9eeb35
commit
1c141c3eda
8
app.py
8
app.py
|
|
@ -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…
Reference in New Issue