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:
Megan Marsh 2020-06-18 10:08:41 -07:00 committed by GitHub
commit 7b76f5d7e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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") {