diff --git a/provisioner/windows-restart/provisioner.go b/provisioner/windows-restart/provisioner.go index c5a683b73..6b7bd90d3 100644 --- a/provisioner/windows-restart/provisioner.go +++ b/provisioner/windows-restart/provisioner.go @@ -119,7 +119,7 @@ var waitForRestart = func(p *Provisioner, comm packer.Communicator) error { // Couldnt execute, we asume machine is rebooting already break } - if cmd.ExitStatus != 0 { + if cmd.ExitStatus == 1115 || cmd.ExitStatus == 1190 { // Reboot already in progress but not completed log.Printf("Reboot already in progress, waiting...") time.Sleep(10 * time.Second)