From 3302bd535f3c530e00042926003a801f0bd823f1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 2 Apr 2014 15:19:36 -0700 Subject: [PATCH] kernel/v2: check if type is set before validation --- plugins/kernel_v2/config/vm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index e9e0df645..7847e22a7 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -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