Skip to content

2.0.0

Compare
Choose a tag to compare
@pkittenis pkittenis released this 06 Oct 12:52
· 56 commits to master since this release
6c0ebce

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 of HostOutput - return_list argument is a no-op and will be removed in future releases.
  • ParallelSSHClient.get_last_output now always returns a list of HostOutput.
  • SSHClient.run_command now returns HostOutput.
  • Removed deprecated since 1.0.0 HostOutput dictionary attributes.
  • Removed deprecated since 1.0.0 imports and modules.
  • Removed paramiko based load_private_key and read_openssh_config functions from pssh.utils.
  • Removed paramiko based pssh.tunnel.
  • Removed paramiko based pssh.agent.
  • Removed deprecated ParallelSSHClient.get_output function.
  • Removed deprecated ParallelSSHClient.get_exit_code and get_exit_codes functions.
  • Removed deprecated ParallelSSHClient host_config dictionary implementation - now list of HostConfig.
  • 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 to read_timeout=<seconds>) for setting output read timeout individually - defaults to global timeout setting.
  • Removed pssh.native package and native code.
  • ParallelSSHClient.scp_send now supports copy_args keyword argument for providing per-host file name arguments like rest of scp_* and copy_* functionality.
  • Changed exception names to end in Error from Exception - backwards compatible.
  • UnknownHostException, AuthenticationException, ConnectionErrorException, SSHException no longer available as imports from pssh - use from 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.