core: dup the synced folder options [GH-2134]

This commit is contained in:
Mitchell Hashimoto 2013-09-05 14:25:38 -07:00
parent 6512eb5cbb
commit 0b94ed44b7
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,9 @@
## 1.3.1 (unreleased) ## 1.3.1 (unreleased)
BUG FIXES:
- provisioners/puppet: No more "shared folders cannot be found" error.
[GH-2134]
## 1.3.0 (September 5, 2013) ## 1.3.0 (September 5, 2013)

View File

@ -138,6 +138,7 @@ module VagrantPlugins
end end
options ||= {} options ||= {}
options = options.dup
options[:guestpath] = guestpath.to_s.gsub(/\/$/, '') options[:guestpath] = guestpath.to_s.gsub(/\/$/, '')
options[:hostpath] = hostpath options[:hostpath] = hostpath

View File

@ -36,10 +36,8 @@ module VagrantPlugins
@expanded_manifests_path, manifests_guest_path, folder_opts) @expanded_manifests_path, manifests_guest_path, folder_opts)
# Share the module paths # Share the module paths
count = 0
@module_paths.each do |from, to| @module_paths.each do |from, to|
root_config.vm.synced_folder(from, to, folder_opts) root_config.vm.synced_folder(from, to, folder_opts)
count += 1
end end
end end