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:
parent
40357e2534
commit
0a8b172bf9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue