kernel/v2: check if type is set before validation

This commit is contained in:
Mitchell Hashimoto 2014-04-02 15:19:36 -07:00
parent b98d9d4170
commit 3302bd535f
1 changed files with 1 additions and 1 deletions

View File

@ -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