multiSSH3 6.21__tar.gz → 6.22__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: multiSSH3
3
- Version: 6.21
3
+ Version: 6.22
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: multiSSH3
3
- Version: 6.21
3
+ Version: 6.22
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
@@ -29,16 +29,16 @@ import textwrap
29
29
  import threading
30
30
  import time
31
31
  import typing
32
- import uuid
32
+ from uuid import uuid4
33
33
  from collections import Counter, defaultdict, deque, ChainMap
34
34
  from itertools import count, product
35
35
  from pprint import pformat
36
36
 
37
37
 
38
- version = '6.21'
38
+ version = '6.22'
39
39
  VERSION = version
40
40
  __version__ = version
41
- COMMIT_DATE = '2026-04-16'
41
+ COMMIT_DATE = '2026-04-21'
42
42
  # TODO: Add terminal TUI
43
43
 
44
44
  CONFIG_FILE_CHAIN = ['./multiSSH3.config.json',
@@ -458,7 +458,7 @@ if __curses_available:
458
458
 
459
459
  #%% ------------ Host Object ----------------
460
460
  class Host:
461
- def __init__(self, name, command, files = None,ipmi = False,interface_ip_prefix = None,scp=False,extraargs=None,gatherMode=False,identity_file=None,shell=False,i = -1,uuid=uuid.uuid4(),ip = None):
461
+ def __init__(self, name, command, files = None,ipmi = False,interface_ip_prefix = None,scp=False,extraargs=None,gatherMode=False,identity_file=None,shell=False,i = -1,uuid=...,ip = None):
462
462
  self.name = name # the name of the host (hostname or IP address)
463
463
  self.command = command # the command to run on the host
464
464
  self.returncode = None # the return code of the command
@@ -478,7 +478,7 @@ class Host:
478
478
  self.resolvedName = None # the resolved IP address of the host
479
479
  # also store a globally unique integer i from 0
480
480
  self.i = i if i != -1 else _get_i()
481
- self.uuid = uuid
481
+ self.uuid = uuid if uuid is not ... else uuid4()
482
482
  self.identity_file = identity_file
483
483
  self.ip = ip if ip else getIP(name)
484
484
  self.current_color_pair = [-1, -1, 1]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes