terraform/communicator/ssh
James Bardin 2d7dc605a0 get communicator errors from a remote.Cmd
The remote.Cmd struct could not convey any transport related error to
the caller, meaning that interrupted commands would show that they
succeeded.

Change Cmd.SetExited to accept an exit status, as well as an error to
store for the caller.  Make the status and error fields internal,
require serialized access through the getter methods.

Users of remote.Cmd should not check both Cmd.Err() and Cmd.ExitStatus()
until after Wait returns.

Require communicators to call Cmd.Init before executing the command.
This will indicate incorrect usage of the remote.Cmd by causing a panic
in SetExitStatus.
2018-03-15 16:03:20 -04:00
..
communicator.go get communicator errors from a remote.Cmd 2018-03-15 16:03:20 -04:00
communicator_test.go get communicator errors from a remote.Cmd 2018-03-15 16:03:20 -04:00
password.go Fix import formatting across code base 2016-04-18 17:28:46 -07:00
password_test.go Fix import formatting across code base 2016-04-18 17:28:46 -07:00
provisioner.go add support for ssh host key checking 2018-02-14 15:35:41 -05:00
provisioner_test.go Remove deprecated key_file and bastion_key_file 2016-10-12 14:30:09 -04:00
ssh_test.go test identity file parsing 2017-12-26 16:27:18 -05:00