diff --git a/lib/vagrant/actions/vm/destroy.rb b/lib/vagrant/actions/vm/destroy.rb index cd7a34d23..45fc92438 100644 --- a/lib/vagrant/actions/vm/destroy.rb +++ b/lib/vagrant/actions/vm/destroy.rb @@ -11,7 +11,7 @@ module Vagrant def destroy_vm logger.info "Destroying VM and associated drives..." - @runner.vm.destroy(:destroy_image => true) + @runner.vm.destroy(:destroy_medium => :delete) end def depersist diff --git a/test/vagrant/actions/vm/destroy_test.rb b/test/vagrant/actions/vm/destroy_test.rb index e060e50ad..4b747dc53 100644 --- a/test/vagrant/actions/vm/destroy_test.rb +++ b/test/vagrant/actions/vm/destroy_test.rb @@ -22,7 +22,7 @@ class DestroyActionTest < Test::Unit::TestCase context "destroying the VM" 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 end end