RunWithUi sets appropriate default for stderr buffer

- The WinRM communicator requires that stderr is not nil
- RunWithUi will set a default stderr buffer if none is specified in the command
This commit is contained in:
Simon Jones 2019-08-13 13:27:14 -04:00 committed by Simon Jones
parent 801c827058
commit aaa913a484
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ var waitForCommunicator = func(ctx context.Context, p *Provisioner) error {
cmdKeyCheck.Stdout = &buf
cmdKeyCheck.Stdout = io.MultiWriter(cmdKeyCheck.Stdout, &buf2)
err := p.comm.Start(ctx, cmdKeyCheck)
err := cmdKeyCheck.RunWithUi(ctx, p.comm, p.ui)
if err != nil {
log.Printf("Communication connection err: %s", err)
shouldContinue = true