read from stderr so it doesnt lock up

This commit is contained in:
Megan Marsh 2017-11-09 15:52:49 -08:00
parent 9b1ae530c3
commit c3cb7fe9f9
1 changed files with 2 additions and 0 deletions

View File

@ -223,7 +223,9 @@ var waitForCommunicator = func(p *Provisioner) error {
cmdModuleLoad.Wait()
stdoutToRead := stdout.String()
stderrToRead := stderr.String()
if !strings.Contains(stdoutToRead, "restarted.") {
log.Printf("Stderr is %s", stderrToRead)
log.Printf("echo didn't succeed; retrying...")
continue
}