From a9b2ab33ad4cc3981372c3fb4fdc3617c0434403 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 8 Apr 2013 10:39:26 -0700 Subject: [PATCH] Convert network type to symbol so that strings can be used --- plugins/providers/virtualbox/action/network.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/providers/virtualbox/action/network.rb b/plugins/providers/virtualbox/action/network.rb index 736524eaa..591583ffc 100644 --- a/plugins/providers/virtualbox/action/network.rb +++ b/plugins/providers/virtualbox/action/network.rb @@ -214,6 +214,9 @@ module VagrantPlugins :type => :static }.merge(options) + # Make sure the type is a symbol + options[:type] = options[:type].to_sym + # Default IP is in the 20-bit private network block for DHCP based networks options[:ip] = "172.28.128.1" if options[:type] == :dhcp