SSH.execute uses the new port helper
This commit is contained in:
parent
57de04abac
commit
ebc3c70f8b
|
@ -13,7 +13,6 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
def execute
|
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|
|
Net::SSH.start(Vagrant.config.ssh.host, Vagrant.config[:ssh][:username], :port => port, :password => Vagrant.config[:ssh][:password]) do |ssh|
|
||||||
yield ssh
|
yield ssh
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue