read from stderr so it doesnt lock up
This commit is contained in:
parent
9b1ae530c3
commit
c3cb7fe9f9
|
@ -223,7 +223,9 @@ var waitForCommunicator = func(p *Provisioner) error {
|
||||||
cmdModuleLoad.Wait()
|
cmdModuleLoad.Wait()
|
||||||
|
|
||||||
stdoutToRead := stdout.String()
|
stdoutToRead := stdout.String()
|
||||||
|
stderrToRead := stderr.String()
|
||||||
if !strings.Contains(stdoutToRead, "restarted.") {
|
if !strings.Contains(stdoutToRead, "restarted.") {
|
||||||
|
log.Printf("Stderr is %s", stderrToRead)
|
||||||
log.Printf("echo didn't succeed; retrying...")
|
log.Printf("echo didn't succeed; retrying...")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue