Merge pull request #9458 from greenhouse-org/windows-restart-check-registry-run-with-ui
Windows restart check registry run with ui
This commit is contained in:
commit
7b76f5d7e0
|
@ -263,12 +263,11 @@ 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
|
||||
}
|
||||
cmdKeyCheck.Wait()
|
||||
|
||||
stdoutToRead := buf2.String()
|
||||
if strings.Contains(stdoutToRead, "True") {
|
||||
|
|
Loading…
Reference in New Issue