Remove unnecessary 1 sec sleep (#8453)

This commit is contained in:
Sylvia Moss 2019-12-06 11:43:28 +01:00 committed by GitHub
parent 4fe34a5dc3
commit 2f63c581a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -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