parallel-ssh v2.0.0 Release Notes
Release Date: 2020-10-06 // over 3 years ago-
๐ Changes
โฌ๏ธ See Upgrading to API 2.0 for examples of code that will need updating.
- โ Removed paramiko clients and dependency.
ParallelSSHClient.run_command
now always returns a list ofHostOutput
-return_list
argument is a no-op and will be removed in future releases.ParallelSSHClient.get_last_output
now always returns a list ofHostOutput
.SSHClient.run_command
now returnsHostOutput
.- โ Removed deprecated since
1.0.0
HostOutput
dictionary attributes. - โ Removed deprecated since
1.0.0
imports and modules. - Removed paramiko based
load_private_key
andread_openssh_config
functions frompssh.utils
. - โ Removed paramiko based
pssh.tunnel
. - โ Removed paramiko based
pssh.agent
. - โ Removed deprecated
ParallelSSHClient.get_output
function. - Removed deprecated
ParallelSSHClient.get_exit_code
andget_exit_codes
functions. - โ Removed deprecated
ParallelSSHClient
host_config
dictionary implementation - now list ofHostConfig
. - โ Removed
HostOutput.cmd
attribute. - โ Removed
ParallelSSHClient.host_clients
attribute. - โฑ Made
ParallelSSHClient(timeout=<seconds>)
a global timeout setting for all operations. - Removed
run_command(greenlet_timeout=<..>)
argument - now uses global timeout setting. - โฑ Renamed
run_command
timeout
toread_timeout=<seconds>)
for setting output read timeout individually - defaults to global timeout setting. - โ Removed
pssh.native
package and native code. - ๐
ParallelSSHClient.scp_send
now supportscopy_args
keyword argument for providing per-host file name arguments like rest ofscp_*
andcopy_*
functionality. - ๐ Changed exception names to end in
Error
fromException
- backwards compatible. UnknownHostException
,AuthenticationException
,ConnectionErrorException
,SSHException
no longer available as importsfrom pssh
- usefrom pssh.exceptions
.
๐ Fixes
- โ Removed now unnecessary locking around SSHClient initialisation so it can be parallelised - #219.
ParallelSSHClient.join
with encoding would not pass on encoding when reading from output buffers - #214.- โฑ Clients could raise
Timeout
early when timeout settings were used with many hosts.
Packaging
- ๐ฆ Package architecture has changed to
none-any
.