Force to_i on adapters for forwarded ports in VirtualBox

This commit is contained in:
Mitchell Hashimoto 2013-03-22 10:47:25 -07:00
parent 7e125db669
commit 230a3ca0bf
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ module VagrantPlugins
options ||= {}
@auto_correct = true
@auto_correct = options[:auto_correct] if options.has_key?(:auto_correct)
@adapter = options[:adapter] || 1
@adapter = options[:adapter].to_i || 1
@protocol = options[:protocol] || "tcp"
end