Convert network type to symbol so that strings can be used

This commit is contained in:
Mitchell Hashimoto 2013-04-08 10:39:26 -07:00
parent 88b34d3b71
commit a9b2ab33ad
1 changed files with 3 additions and 0 deletions

View File

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