From ebc3c70f8bd5af96b6e257e4b2bd92993cd7fa0b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 15 Feb 2010 18:52:33 -0800 Subject: [PATCH] SSH.execute uses the new port helper --- lib/vagrant/ssh.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/vagrant/ssh.rb b/lib/vagrant/ssh.rb index 8a30d5c64..f00093fd7 100644 --- a/lib/vagrant/ssh.rb +++ b/lib/vagrant/ssh.rb @@ -13,7 +13,6 @@ module Vagrant end def execute - port = Vagrant.config.vm.forwarded_ports[Vagrant.config.ssh.forwarded_port_key][:hostport] Net::SSH.start(Vagrant.config.ssh.host, Vagrant.config[:ssh][:username], :port => port, :password => Vagrant.config[:ssh][:password]) do |ssh| yield ssh end