Skip to content

1.0.0 beta 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@pkittenis pkittenis released this 11 Jan 17:53
· 187 commits to master since this release

1.0.0 Beta release 2

Changes

  • ParallelSSHClient.join no longer consumes output buffers
  • Documented use_pty parameter of run_command
  • Misc documentation updates
  • SSHClient read_output_buffer is now public function and has gained callback capability
  • If using the single SSHClient directly, read_output_buffer should now be used to read output buffers - this is not needed for ParallelSSHClient

ParallelSSHClient.join change means that the following two code sections are now equivalent

output = client.run_command(<..>)
stdout = list(output[host]['stdout']
exit_code = output[host]['exit_code']
output = client.run_command(<..>)
client.join(output)
exit_code = output[host]['exit_code']
stdout = list(output[host]['stdout']

stdout in the second section will contain standard output. Previously it would be empty if client.join was called before stdout iteration. Exit codes will be available in both cases, as previously.