From 1ae99e3a2e3c7c93ada73066ad561185b6fec8a6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 8 May 2014 13:38:40 -0700 Subject: [PATCH] kernel/v2: convert network type to symbol earlier --- plugins/kernel_v2/config/vm.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index bda1b84cc..7e0803756 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -213,6 +213,9 @@ module VagrantPlugins options = options.dup options[:protocol] ||= "tcp" + # Convert to symbol to allow strings + type = type.to_sym + if !options[:id] default_id = nil