use driver delete method
This commit is contained in:
parent
efa29f0e7a
commit
228bc9cfd3
|
@ -76,7 +76,7 @@ func (s *stepCreateVM) Cleanup(state multistep.StateBag) {
|
|||
ui.Say("Unregistering and deleting virtual machine...")
|
||||
var err error = nil
|
||||
for i := 0; i < 5; i++ {
|
||||
err = driver.VBoxManage("unregistervm", s.vmName, "--delete")
|
||||
err = driver.Delete(s.vmName)
|
||||
if err == nil {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue