Update destroy action to use the new destroy syntax for VM
This commit is contained in:
parent
d44dd9a4eb
commit
0c5ec7a4c7
|
@ -11,7 +11,7 @@ module Vagrant
|
||||||
|
|
||||||
def destroy_vm
|
def destroy_vm
|
||||||
logger.info "Destroying VM and associated drives..."
|
logger.info "Destroying VM and associated drives..."
|
||||||
@runner.vm.destroy(:destroy_image => true)
|
@runner.vm.destroy(:destroy_medium => :delete)
|
||||||
end
|
end
|
||||||
|
|
||||||
def depersist
|
def depersist
|
||||||
|
|
|
@ -22,7 +22,7 @@ class DestroyActionTest < Test::Unit::TestCase
|
||||||
|
|
||||||
context "destroying the VM" do
|
context "destroying the VM" do
|
||||||
should "destroy VM and attached images" do
|
should "destroy VM and attached images" do
|
||||||
@vm.expects(:destroy).with(:destroy_image => true).once
|
@vm.expects(:destroy).with(:destroy_medium => :delete).once
|
||||||
@action.destroy_vm
|
@action.destroy_vm
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue