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

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1149016 - lowering verbosity of ssh debug messages
  • Loading branch information
fabianofranz committed Dec 2, 2014
1 parent ae21ea0 commit f8e380a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rhc/commands/ssh.rb
Expand Up @@ -39,7 +39,7 @@ def run(_, command)

debug "Using user specified SSH: #{options.ssh}" if options.ssh

command_line = [RHC::Helpers.split_path(ssh), ('-vvv' if debug?), rest_app.ssh_string.to_s, command].flatten.compact
command_line = [RHC::Helpers.split_path(ssh), ('-vv' if debug?), rest_app.ssh_string.to_s, command].flatten.compact

debug "Invoking Kernel.exec with #{command_line.inspect}"
begin
Expand Down
2 changes: 1 addition & 1 deletion spec/rhc/commands/ssh_spec.rb
Expand Up @@ -36,7 +36,7 @@
before(:each) do
@domain = rest_client.add_domain("mockdomain")
@domain.add_application("app1", "mock_type")
Kernel.should_receive(:exec).with("ssh", "-vvv", "fakeuuidfortestsapp1@127.0.0.1").and_return(0)
Kernel.should_receive(:exec).with("ssh", "-vv", "fakeuuidfortestsapp1@127.0.0.1").and_return(0)
end
# It would be nice if this checked for the debug[123]: messages from standard error but im not sure how to look for that.
it { run_output.should match("Connecting to fakeuuidfortestsapp") }
Expand Down

0 comments on commit f8e380a

Please sign in to comment.