Remove duplicated retry mechanism when deleting VM ffrom virtual box (#8485)

This retry was also added to fix a locked by session error reported in #5501 and fixed in #5512.
This commit is contained in:
Sylvia Moss 2019-12-16 14:31:15 +01:00 committed by Adrien Delorme
parent 40357e2534
commit 0a8b172bf9
1 changed files with 1 additions and 8 deletions

View File

@ -76,14 +76,7 @@ func (d *VBox42Driver) CreateSCSIController(vmName string, name string) error {
}
func (d *VBox42Driver) Delete(name string) error {
ctx := context.TODO()
return retry.Config{
Tries: 5,
RetryDelay: (&retry.Backoff{InitialBackoff: 1 * time.Second, MaxBackoff: 1 * time.Second, Multiplier: 2}).Linear,
}.Run(ctx, func(ctx context.Context) error {
err := d.VBoxManage("unregistervm", name, "--delete")
return err
})
return d.VBoxManage("unregistervm", name, "--delete")
}
func (d *VBox42Driver) Iso() (string, error) {