terraform/communicator/winrm
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 communicator/{ssh,winrm}: seed random script paths 2016-06-29 09:32:24 -05:00
provisioner.go communicator/winrm: pass cacert option correctly 2017-10-23 13:28:41 -07:00
provisioner_test.go communicator/winrm: pass cacert option correctly 2017-10-23 13:28:41 -07:00