respect :nic_type option for private network. Fixes #1704

This commit is contained in:
Anton Kalyaev 2013-05-10 15:45:50 +04:00
parent ccfd321ef9
commit 098516e80e
2 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ IMPROVEMENTS:
BUG FIXES: BUG FIXES:
- The `:nic_type` option for private networks is respected. [GH-1704]
- Ignore "guest not ready" errors when attempting to graceful halt and - Ignore "guest not ready" errors when attempting to graceful halt and
carry on checks whether the halt succeeded. [GH-1679] carry on checks whether the halt succeeded. [GH-1679]
- Handle the case where a roles path for Chef solo isn't properly - Handle the case where a roles path for Chef solo isn't properly

View File

@ -210,6 +210,7 @@ module VagrantPlugins
options = { options = {
:auto_config => true, :auto_config => true,
:mac => nil, :mac => nil,
:nic_type => nil,
:netmask => "255.255.255.0", :netmask => "255.255.255.0",
:type => :static :type => :static
}.merge(options) }.merge(options)
@ -269,7 +270,7 @@ module VagrantPlugins
:ip => options[:ip], :ip => options[:ip],
:mac => options[:mac], :mac => options[:mac],
:netmask => options[:netmask], :netmask => options[:netmask],
:nic_type => nil, :nic_type => options[:nic_type],
:type => options[:type] :type => options[:type]
}.merge(dhcp_options) }.merge(dhcp_options)
end end