From abf6a50b5a39c409ff36fbe0da8ad6fd757d387d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 3 Jun 2010 12:03:43 -0700 Subject: [PATCH] Dup the shared folders array when destroying due to changes in virtualbox gem --- lib/vagrant/actions/vm/shared_folders.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/actions/vm/shared_folders.rb b/lib/vagrant/actions/vm/shared_folders.rb index e6bcd1e7d..994d9dfc1 100644 --- a/lib/vagrant/actions/vm/shared_folders.rb +++ b/lib/vagrant/actions/vm/shared_folders.rb @@ -33,7 +33,8 @@ module Vagrant def clear_shared_folders logger.info "Clearing previously set shared folders..." - @runner.vm.shared_folders.each do |shared_folder| + folders = @runner.vm.shared_folders.dup + folders.each do |shared_folder| shared_folder.destroy end