multiSSH3 5.4__py3-none-any.whl → 5.6__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.
- {multiSSH3-5.4.dist-info → multiSSH3-5.6.dist-info}/METADATA +1 -1
- multiSSH3-5.6.dist-info/RECORD +7 -0
- multiSSH3.py +7 -5
- multiSSH3-5.4.dist-info/RECORD +0 -7
- {multiSSH3-5.4.dist-info → multiSSH3-5.6.dist-info}/LICENSE +0 -0
- {multiSSH3-5.4.dist-info → multiSSH3-5.6.dist-info}/WHEEL +0 -0
- {multiSSH3-5.4.dist-info → multiSSH3-5.6.dist-info}/entry_points.txt +0 -0
- {multiSSH3-5.4.dist-info → multiSSH3-5.6.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
multiSSH3.py,sha256=HqHel8s-dKmlsgHu1Vhcdo5MAp7GiyF6hYczr5dt2n4,100997
|
|
2
|
+
multiSSH3-5.6.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
3
|
+
multiSSH3-5.6.dist-info/METADATA,sha256=U0G_An0gJZJE5S5tAk2yRxUgA2_lf9h9YioOvN7i05U,17516
|
|
4
|
+
multiSSH3-5.6.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
5
|
+
multiSSH3-5.6.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
|
|
6
|
+
multiSSH3-5.6.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
|
|
7
|
+
multiSSH3-5.6.dist-info/RECORD,,
|
multiSSH3.py
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1937
|
+
try:
|
|
1936
1938
|
args = parser.parse_intermixed_args()
|
|
1937
|
-
|
|
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
|
multiSSH3-5.4.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
multiSSH3.py,sha256=U5BjFNI9GfDr8Nbj6KOkSo6f0FQ7kGtgFSxDPA2gKNA,100793
|
|
2
|
-
multiSSH3-5.4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
3
|
-
multiSSH3-5.4.dist-info/METADATA,sha256=hvYNJ9SyZ_E3Bk9cM61WJkdEqknsNZQ6FLetMx8brtA,17516
|
|
4
|
-
multiSSH3-5.4.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
5
|
-
multiSSH3-5.4.dist-info/entry_points.txt,sha256=xi2rWWNfmHx6gS8Mmx0rZL2KZz6XWBYP3DWBpWAnnZ0,143
|
|
6
|
-
multiSSH3-5.4.dist-info/top_level.txt,sha256=tUwttxlnpLkZorSsroIprNo41lYSxjd2ASuL8-EJIJw,10
|
|
7
|
-
multiSSH3-5.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|