core: dup option hashes everywhere

This commit is contained in:
Mitchell Hashimoto 2013-09-05 14:26:53 -07:00
parent 0b94ed44b7
commit 1769fbcba8
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,8 @@
BUG FIXES:
- core: Fix various issues where using the same options hash in a
Vagrantfile can cause errors.
- provisioners/puppet: No more "shared folders cannot be found" error.
[GH-2134]

View File

@ -163,6 +163,7 @@ module VagrantPlugins
# @param [Hash] options Options for the network.
def network(type, options=nil)
options ||= {}
options = options.dup
options[:protocol] ||= "tcp"
if !options[:id]
@ -226,6 +227,7 @@ module VagrantPlugins
def define(name, options=nil, &block)
name = name.to_sym
options ||= {}
options = options.dup
options[:config_version] ||= "2"
# Add the name to the array of VM keys. This array is used to