File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
__pycache__ /
4
4
build /
5
5
dist /
6
- sshcontroller_oroques .egg-info /
6
+ sshcontroller .egg-info /
Original file line number Diff line number Diff line change 5
5
6
6
setuptools .setup (
7
7
name = "sshcontroller" ,
8
- version = "1.0 " ,
8
+ version = "1.1 " ,
9
9
author = "Olivier Roques" ,
10
10
author_email = "olivier@oroques.dev" ,
11
11
description = "A package to easily run SSH commands" ,
Original file line number Diff line number Diff line change @@ -160,7 +160,11 @@ def __run_until_event(
160
160
break
161
161
162
162
channel .close ()
163
- return (channel .exit_status_ready (), output .splitlines ())
163
+
164
+ if not channel .exit_status_ready ():
165
+ return (0 , output .splitlines ())
166
+
167
+ return (channel .recv_exit_status (), output .splitlines ())
164
168
165
169
def __run_until_exit (
166
170
self ,
You can’t perform that action at this time.
0 commit comments