We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9867d39 commit 2d358cfCopy full SHA for 2d358cf
.gitignore
@@ -3,4 +3,4 @@
3
__pycache__/
4
build/
5
dist/
6
-sshcontroller_oroques.egg-info/
+sshcontroller.egg-info/
setup.py
@@ -5,7 +5,7 @@
setuptools.setup(
7
name="sshcontroller",
8
- version="1.0",
+ version="1.1",
9
author="Olivier Roques",
10
author_email="[email protected]",
11
description="A package to easily run SSH commands",
sshcontroller/sshcontroller.py
@@ -160,7 +160,11 @@ def __run_until_event(
160
break
161
162
channel.close()
163
- return (channel.exit_status_ready(), output.splitlines())
+
164
+ if not channel.exit_status_ready():
165
+ return (0, output.splitlines())
166
167
+ return (channel.recv_exit_status(), output.splitlines())
168
169
def __run_until_exit(
170
self,
0 commit comments