multiSSH3 5.42__py3-none-any.whl → 5.43__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of multiSSH3 might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: multiSSH3
3
- Version: 5.42
3
+ Version: 5.43
4
4
  Summary: Run commands on multiple hosts via SSH
5
5
  Home-page: https://github.com/yufei-pan/multiSSH3
6
6
  Author: Yufei Pan
@@ -0,0 +1,6 @@
1
+ multiSSH3.py,sha256=XcI427f_uDAZzhRVSrnGa2CLQbEIcRfNHuRxGm-hC-c,138864
2
+ multiSSH3-5.43.dist-info/METADATA,sha256=aRmafYNhFOtGQDjkn4biNypqy01CJ1Y35eMwok4udYk,18001
3
+ multiSSH3-5.43.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
4
+ multiSSH3-5.43.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
5
+ multiSSH3-5.43.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
6
+ multiSSH3-5.43.dist-info/RECORD,,
multiSSH3.py CHANGED
@@ -45,7 +45,7 @@ except AttributeError:
45
45
  # If neither is available, use a dummy decorator
46
46
  def cache_decorator(func):
47
47
  return func
48
- version = '5.42'
48
+ version = '5.43'
49
49
  VERSION = version
50
50
 
51
51
  CONFIG_FILE = '/etc/multiSSH3.config.json'
@@ -1420,12 +1420,14 @@ def run_command(host, sem, timeout=60,passwds=None, retry_limit = 5):
1420
1420
  __handle_reading_stream(io.BytesIO(stderr),host.stderr, host)
1421
1421
  # if the last line in host.stderr is Connection to * closed., we will remove it
1422
1422
  host.returncode = proc.poll()
1423
- if not host.returncode:
1423
+ if host.returncode is None:
1424
1424
  # process been killed via timeout or sigkill
1425
1425
  if host.stderr and host.stderr[-1].strip().startswith('Timeout!'):
1426
1426
  host.returncode = 124
1427
1427
  elif host.stderr and host.stderr[-1].strip().startswith('Ctrl C detected, Emergency Stop!'):
1428
1428
  host.returncode = 137
1429
+ else:
1430
+ host.returncode = -1
1429
1431
  host.output.append(f'Command finished with return code {host.returncode}')
1430
1432
  if host.stderr:
1431
1433
  # filter out the error messages that we want to ignore
@@ -1,6 +0,0 @@
1
- multiSSH3.py,sha256=Xs05pxUY2WXSF-o98K87wKbIwNxtkKZlDwrthtzQf1Q,138824
2
- multiSSH3-5.42.dist-info/METADATA,sha256=xtXbj1Q5ezo_UxPdqOp9b2vcBnkywdQY1gHeTwAARYQ,18001
3
- multiSSH3-5.42.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
4
- multiSSH3-5.42.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
5
- multiSSH3-5.42.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
6
- multiSSH3-5.42.dist-info/RECORD,,