From 230a3ca0bf8627d4883becb671931dfff444401a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 22 Mar 2013 10:47:25 -0700 Subject: [PATCH] Force to_i on adapters for forwarded ports in VirtualBox --- plugins/providers/virtualbox/model/forwarded_port.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/virtualbox/model/forwarded_port.rb b/plugins/providers/virtualbox/model/forwarded_port.rb index 8cec67969..234d2adc7 100644 --- a/plugins/providers/virtualbox/model/forwarded_port.rb +++ b/plugins/providers/virtualbox/model/forwarded_port.rb @@ -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