Commit Graph

9 Commits

Author SHA1 Message Date
Megan Marsh 7b1f7c87e5 add a check and test so that the winrm communicator upload doesn't fail becuase of a nil file pointer 2019-05-31 16:54:25 -06:00
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
* I had to contextualise Communicator.Start and RemoteCmd.StartWithUi
NOTE: Communicator.Start starts a RemoteCmd but RemoteCmd.StartWithUi will run the cmd and wait for a return, so I renamed StartWithUi to RunWithUi so that the intent is clearer.
Ideally in the future RunWithUi will be named back to StartWithUi and the exit status or wait funcs of the command will allow to wait for a return. If you do so please read carrefully https://golang.org/pkg/os/exec/#Cmd.Stdout to avoid a deadlock
* cmd.ExitStatus to cmd.ExitStatus() is now blocking to avoid race conditions
* also had to simplify StartWithUi
2019-04-08 20:09:21 +02:00
Megan Marsh 52c0be2d82 fix test 2017-10-05 16:57:52 -07:00
Mark DeLillo 9a16b6768e Fix decode
- Write decoded bytes without padding

Signed-off-by: Natalie Arellano <narellano@pivotal.io>
2017-04-26 12:15:57 -04:00
Paul Nikonowicz 0614fc234f Implement download for WinRM communicator
Signed-off-by: Mark DeLillo <mdelillo@pivotal.io>
2017-04-26 12:15:30 -04:00
Matthew Hooker 81522dced0
move packer to hashicorp 2017-04-04 13:39:01 -07:00
DanHam 2b0f52e84a
Fix copy/paste Terraform references 2017-01-29 16:31:23 +00:00
Mitchell Hashimoto 6077c796f5 communicator/winrm: fix failing test 2015-06-13 22:10:50 -07:00
Mitchell Hashimoto 0c0f876654 communicator/winrm 2015-06-13 22:00:40 -07:00