From 2f63c581a00050d6f4754f87d82450fa0e9e9cb8 Mon Sep 17 00:00:00 2001 From: Sylvia Moss Date: Fri, 6 Dec 2019 11:43:28 +0100 Subject: [PATCH] Remove unnecessary 1 sec sleep (#8453) --- builder/virtualbox/common/step_export.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/builder/virtualbox/common/step_export.go b/builder/virtualbox/common/step_export.go index d3d40d72b..b249d2537 100644 --- a/builder/virtualbox/common/step_export.go +++ b/builder/virtualbox/common/step_export.go @@ -3,10 +3,8 @@ package common import ( "context" "fmt" - "log" "path/filepath" "strings" - "time" "github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/packer" @@ -46,9 +44,6 @@ func (s *StepExport) Run(ctx context.Context, state multistep.StateBag) multiste return multistep.ActionContinue } - // Wait a second to ensure VM is really shutdown. - log.Println("1 second timeout to ensure VM is really shutdown") - time.Sleep(1 * time.Second) ui.Say("Preparing to export machine...") // Clear out the Packer-created forwarding rule