From 72391f8f4d1d8af6850c9bacb4f5df0afbf778e0 Mon Sep 17 00:00:00 2001 From: Poddo Date: Wed, 3 Oct 2018 00:54:31 -0500 Subject: [PATCH] Update provisioner.go Remove extra break statement that made it's way into the "reboot pending" loop when some logic was rearranged in https://github.com/hashicorp/packer/commit/9fa47f5dad3a319d9987770853db9917853cf2f1#diff-8bb0a16231863cd1487dd9a3d3792565 --- provisioner/windows-restart/provisioner.go | 1 - 1 file changed, 1 deletion(-) diff --git a/provisioner/windows-restart/provisioner.go b/provisioner/windows-restart/provisioner.go index 3735cff73e7..2e9615b1715 100644 --- a/provisioner/windows-restart/provisioner.go +++ b/provisioner/windows-restart/provisioner.go @@ -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