core: dup option hashes everywhere
This commit is contained in:
parent
0b94ed44b7
commit
1769fbcba8
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
BUG FIXES:
|
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.
|
- provisioners/puppet: No more "shared folders cannot be found" error.
|
||||||
[GH-2134]
|
[GH-2134]
|
||||||
|
|
||||||
|
|
|
@ -163,6 +163,7 @@ module VagrantPlugins
|
||||||
# @param [Hash] options Options for the network.
|
# @param [Hash] options Options for the network.
|
||||||
def network(type, options=nil)
|
def network(type, options=nil)
|
||||||
options ||= {}
|
options ||= {}
|
||||||
|
options = options.dup
|
||||||
options[:protocol] ||= "tcp"
|
options[:protocol] ||= "tcp"
|
||||||
|
|
||||||
if !options[:id]
|
if !options[:id]
|
||||||
|
@ -226,6 +227,7 @@ module VagrantPlugins
|
||||||
def define(name, options=nil, &block)
|
def define(name, options=nil, &block)
|
||||||
name = name.to_sym
|
name = name.to_sym
|
||||||
options ||= {}
|
options ||= {}
|
||||||
|
options = options.dup
|
||||||
options[:config_version] ||= "2"
|
options[:config_version] ||= "2"
|
||||||
|
|
||||||
# Add the name to the array of VM keys. This array is used to
|
# Add the name to the array of VM keys. This array is used to
|
||||||
|
|
Loading…
Reference in New Issue