provisioner/windows-restart: revert sleep hack now that we've fixed the underlying bug in #8369 (#8377)
This commit is contained in:
parent
dfa134cd98
commit
ad34a4551b
|
@ -135,11 +135,6 @@ var waitForRestart = func(ctx context.Context, p *Provisioner, comm packer.Commu
|
||||||
trycommand := TryCheckReboot
|
trycommand := TryCheckReboot
|
||||||
abortcommand := AbortReboot
|
abortcommand := AbortReboot
|
||||||
|
|
||||||
// This sleep works around an azure/winrm bug. For more info see
|
|
||||||
// https://github.com/hashicorp/packer/issues/5257; we can remove the
|
|
||||||
// sleep when the underlying bug has been resolved.
|
|
||||||
time.Sleep(1 * time.Second)
|
|
||||||
|
|
||||||
// Stolen from Vagrant reboot checker
|
// Stolen from Vagrant reboot checker
|
||||||
for {
|
for {
|
||||||
log.Printf("Check if machine is rebooting...")
|
log.Printf("Check if machine is rebooting...")
|
||||||
|
|
Loading…
Reference in New Issue