kernel/v2: check if type is set before validation
This commit is contained in:
parent
b98d9d4170
commit
3302bd535f
|
@ -578,7 +578,7 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
if type == :private_network
|
||||
if options[:type].to_sym != :dhcp
|
||||
if options[:type] && options[:type].to_sym != :dhcp
|
||||
if !options[:ip]
|
||||
errors << I18n.t("vagrant.config.vm.network_ip_required")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue