Merge pull request #464 from mandre/dhcp-symbol

Accept both symbol and string for network type
This commit is contained in:
Dmitry Vasilets 2015-09-24 08:23:39 +02:00
commit 307f95e891
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ module VagrantPlugins
if @options[:ip]
handle_ip_option(env)
elsif @options[:type] == :dhcp
elsif @options[:type].to_s == 'dhcp'
handle_dhcp_private_network(env)
elsif @options[:network_name]
handle_network_name_option(env)

View File

@ -60,7 +60,7 @@ module VagrantPlugins
forward_mode: 'nat',
}.merge(options)
if options[:type] == :dhcp && options[:ip].nil?
if options[:type].to_s == 'dhcp' && options[:ip].nil?
options[:network_name] = "vagrant-private-dhcp"
end