From 0c5ec7a4c7a7d81e171dc9fe21073e56865b15d2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 8 Apr 2010 01:22:51 -0700 Subject: [PATCH] Update destroy action to use the new destroy syntax for VM --- lib/vagrant/actions/vm/destroy.rb | 2 +- test/vagrant/actions/vm/destroy_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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