Dup the shared folders array when destroying due to changes in virtualbox gem
This commit is contained in:
parent
4e806ae325
commit
abf6a50b5a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue