Respect :mac option for networks [GH-1536]

This commit is contained in:
Mitchell Hashimoto 2013-04-03 15:41:42 -07:00
parent 52a2f48b20
commit fc708bc139
2 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,10 @@ IMPROVEMENTS:
- Specify the default provider with the `VAGRANT_DEFAULT_PROVIDER`
environmental variable. [GH-1478]
BUG FIXES:
- The `:mac` option for host-only networks is respected. [GH-1536]
## 1.1.6 (April 3, 2013)
BUG FIXES:

View File

@ -209,6 +209,7 @@ module VagrantPlugins
def hostonly_config(options)
options = {
:auto_config => true,
:mac => nil,
:netmask => "255.255.255.0",
:type => :static
}.merge(options)
@ -263,7 +264,7 @@ module VagrantPlugins
:adapter_ip => options[:adapter_ip],
:auto_config => options[:auto_config],
:ip => options[:ip],
:mac => nil,
:mac => options[:mac],
:netmask => options[:netmask],
:nic_type => nil,
:type => options[:type]