From 09e11ae792c954a4b772f400b6d891fb48313e50 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 4 Jan 2012 16:47:03 -0800 Subject: [PATCH] Fix forwarded port map which still references "name" --- lib/vagrant/action/vm/check_port_collisions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/action/vm/check_port_collisions.rb b/lib/vagrant/action/vm/check_port_collisions.rb index ab5a92266..3bb46d80e 100644 --- a/lib/vagrant/action/vm/check_port_collisions.rb +++ b/lib/vagrant/action/vm/check_port_collisions.rb @@ -59,7 +59,7 @@ module Vagrant # ports which are being used in other forwards so we're just # left with available ports. range = @env[:vm].config.vm.auto_port_range.to_a - range -= @env[:vm].config.vm.forwarded_ports.collect { |n, o| o[:hostport].to_i } + range -= @env[:vm].config.vm.forwarded_ports.collect { |opts| opts[:hostport].to_i } range -= existing_ports if range.empty?