2.0.0
Changes
See Upgrading to API 2.0 for examples of code that will need updating.
- Removed paramiko clients and dependency.
ParallelSSHClient.run_commandnow always returns a list ofHostOutput-return_listargument is a no-op and will be removed in future releases.ParallelSSHClient.get_last_outputnow always returns a list ofHostOutput.SSHClient.run_commandnow returnsHostOutput.- Removed deprecated since
1.0.0HostOutputdictionary attributes. - Removed deprecated since
1.0.0imports and modules. - Removed paramiko based
load_private_keyandread_openssh_configfunctions frompssh.utils. - Removed paramiko based
pssh.tunnel. - Removed paramiko based
pssh.agent. - Removed deprecated
ParallelSSHClient.get_outputfunction. - Removed deprecated
ParallelSSHClient.get_exit_codeandget_exit_codesfunctions. - Removed deprecated
ParallelSSHClienthost_configdictionary implementation - now list ofHostConfig. - Removed
HostOutput.cmdattribute. - Removed
ParallelSSHClient.host_clientsattribute. - Made
ParallelSSHClient(timeout=<seconds>)a global timeout setting for all operations. - Removed
run_command(greenlet_timeout=<..>)argument - now uses global timeout setting. - Renamed
run_commandtimeouttoread_timeout=<seconds>)for setting output read timeout individually - defaults to global timeout setting. - Removed
pssh.nativepackage and native code. ParallelSSHClient.scp_sendnow supportscopy_argskeyword argument for providing per-host file name arguments like rest ofscp_*andcopy_*functionality.- Changed exception names to end in
ErrorfromException- backwards compatible. UnknownHostException,AuthenticationException,ConnectionErrorException,SSHExceptionno longer available as importsfrom pssh- usefrom pssh.exceptions.
Fixes
- Removed now unnecessary locking around SSHClient initialisation so it can be parallelised - #219.
ParallelSSHClient.joinwith encoding would not pass on encoding when reading from output buffers - #214.- Clients could raise
Timeoutearly when timeout settings were used with many hosts.
Packaging
- Package architecture has changed to
none-any.