Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Merge pull request #737 from tiwillia/portforwardagain
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Dec 11, 2015
2 parents 62e1fdb + 1fce1a6 commit be30f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rhc/commands/port_forward.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def run(app)
begin
status, output = run_with_system_ssh(ssh_cmd)
rescue RHC::SSHCommandFailed => e
ex_forward_cmd = "#{ssh_executable} -N -L <local_port>:<gear_ip>:<destination_port>"
ex_forward_cmd = "#{ssh_executable} -N -L <local_port>:<gear_ip>:<destination_port> #{rest_app.ssh_url.gsub("ssh://", "")}"
raise RHC::PortForwardFailedException.new("#{e.message + "\n" if debug?}Error attempting to collect ports to forward from app. You can try to forward ports manually.\nFirst, to get the destination ip and port, run the following command:\n #{ssh_cmd}\nThen, run the following command with the ports and ip substituted:\n " + ex_forward_cmd)
end
end
Expand Down

0 comments on commit be30f20

Please sign in to comment.