terraform/communicator
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
..
remote get communicator errors from a remote.Cmd 2018-03-15 16:03:20 -04:00
shared provisioners: Allow provisioning over IPv6 2016-09-03 15:45:24 -07:00
ssh get communicator errors from a remote.Cmd 2018-03-15 16:03:20 -04:00
winrm get communicator errors from a remote.Cmd 2018-03-15 16:03:20 -04:00
communicator.go Fix type assertion when loading stored error 2018-02-15 15:59:34 -05:00
communicator_mock.go get communicator errors from a remote.Cmd 2018-03-15 16:03:20 -04:00
communicator_test.go add the remote-exec retry function to communicator 2018-02-14 18:18:12 -05:00