Commit Graph

13 Commits

Author SHA1 Message Date
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
Josh Soref 8c72bba160 spelling: possible 2018-03-14 02:14:18 +00:00
Matthew Hooker ff64ccda55
Merge pull request #5426 from hashicorp/fix_4915
Fix 4915
2018-02-05 14:54:27 -08:00
Matthew Hooker ebe995c0ff
run goimports 2018-01-22 17:21:10 -08:00
Megan Marsh e8cabc1e83 implemented for LXD 2017-10-04 15:23:36 -07:00
Megan Marsh 7f0d253dbf some last minute cleanup 2017-09-05 14:09:15 -07:00
Chris Lundquist f6bc158a80 [lxd] minor fixups for new styles and docs 2017-09-05 12:46:36 -07:00
Chris Lundquist 29bbe10c1c [lxd] rework local tar command to avoid chdir 2017-09-05 12:44:39 -07:00
Chris Lundquist e29f06fe1c [lxd] refactor commands to dry things up 2017-09-05 12:44:39 -07:00
Chris Lundquist 607da30547 [lxd] remove CheckInit 2017-09-05 12:44:39 -07:00
Chris Lundquist 3a0ef7b8b8 [lxd] it 'works' 2017-09-05 12:44:39 -07:00
Chris Lundquist 821cca56a8 [lxd] hack for UploadDir, improve Upload/Download 2017-09-05 12:44:39 -07:00
Chris Lundquist 7366b6c78e [lxd] first pass 2017-09-05 12:44:39 -07:00