Update provisioner.go

Remove extra break statement that made it's way into the "reboot pending" loop when some logic was rearranged in 9fa47f5dad (diff-8bb0a16231863cd1487dd9a3d3792565)
pull/6792/head
Poddo 8 years ago committed by GitHub
parent 83c713c0df
commit 72391f8f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -138,7 +138,6 @@ var waitForRestart = func(p *Provisioner, comm packer.Communicator) error {
// Reboot already in progress but not completed
log.Printf("Reboot already in progress, waiting...")
time.Sleep(10 * time.Second)
break
}
if cmd.ExitStatus == 0 {
// Cancel reboot we created to test if machine was already rebooting

Loading…
Cancel
Save