Dup the shared folders array when destroying due to changes in virtualbox gem

This commit is contained in:
Mitchell Hashimoto 2010-06-03 12:03:43 -07:00
parent 4e806ae325
commit abf6a50b5a
1 changed files with 2 additions and 1 deletions

View File

@ -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