multiSSH3 5.4__tar.gz → 5.6__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.

Potentially problematic release.


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

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: multiSSH3
3
- Version: 5.4
3
+ Version: 5.6
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.1
2
2
  Name: multiSSH3
3
- Version: 5.4
3
+ Version: 5.6
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
@@ -31,7 +31,7 @@ except AttributeError:
31
31
  # If neither is available, use a dummy decorator
32
32
  def cache_decorator(func):
33
33
  return func
34
- version = '5.04'
34
+ version = '5.06'
35
35
  VERSION = version
36
36
 
37
37
  CONFIG_FILE = '/etc/multiSSH3.config.json'
@@ -741,12 +741,14 @@ def ssh_command(host, sem, timeout=60,passwds=None):
741
741
  if passwds:
742
742
  formatedCMD = [_binPaths['bash'],'-c',f'ipmitool -H {host.address} -U {host.username} -P {passwds} {" ".join(extraargs)} {host.command}']
743
743
  else:
744
- formatedCMD = [_binPaths['bash'],'-c',f'ipmitool -H {host.address} -U {host.username} {" ".join(extraargs)} {host.command}']
744
+ host.output.append('Warning: Password not provided for ipmi! Using a default password `admin`.')
745
+ formatedCMD = [_binPaths['bash'],'-c',f'ipmitool -H {host.address} -U {host.username} -P admin {" ".join(extraargs)} {host.command}']
745
746
  else:
746
747
  if passwds:
747
748
  formatedCMD = [_binPaths['ipmitool'],f'-H {host.address}',f'-U {host.username}',f'-P {passwds}'] + extraargs + [host.command]
748
749
  else:
749
- formatedCMD = [_binPaths['ipmitool'],f'-H {host.address}',f'-U {host.username}'] + extraargs + [host.command]
750
+ host.output.append('Warning: Password not provided for ipmi! Using a default password `admin`.')
751
+ formatedCMD = [_binPaths['ipmitool'],f'-H {host.address}',f'-U {host.username}',f'-P admin'] + extraargs + [host.command]
750
752
  elif 'ssh' in _binPaths:
751
753
  host.output.append('Ipmitool not found on the local machine! Trying ipmitool on the remote machine...')
752
754
  if __DEBUG_MODE:
@@ -1932,9 +1934,9 @@ def main():
1932
1934
  #args = parser.parse_args()
1933
1935
 
1934
1936
  # if python version is 3.7 or higher, use parse_intermixed_args
1935
- if sys.version_info >= (3,7):
1937
+ try:
1936
1938
  args = parser.parse_intermixed_args()
1937
- else:
1939
+ except:
1938
1940
  # try to parse the arguments using parse_known_args
1939
1941
  args, unknown = parser.parse_known_args()
1940
1942
  # if there are unknown arguments, we will try to parse them again using parse_args
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='multiSSH3',
5
- version='5.04',
5
+ version='5.06',
6
6
  description='Run commands on multiple hosts via SSH',
7
7
  long_description=open('README.md').read(),
8
8
  long_description_content_type='text/markdown',
File without changes
File without changes
File without changes