From ad34a4551b602ff50745cbcf8fe64d92b2fd445a Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Mon, 18 Nov 2019 01:48:33 -0800 Subject: [PATCH] provisioner/windows-restart: revert sleep hack now that we've fixed the underlying bug in #8369 (#8377) --- provisioner/windows-restart/provisioner.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/provisioner/windows-restart/provisioner.go b/provisioner/windows-restart/provisioner.go index 4f019c94b..f2bc01d30 100644 --- a/provisioner/windows-restart/provisioner.go +++ b/provisioner/windows-restart/provisioner.go @@ -135,11 +135,6 @@ var waitForRestart = func(ctx context.Context, p *Provisioner, comm packer.Commu trycommand := TryCheckReboot 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 for { log.Printf("Check if machine is rebooting...")