diff options
author | Saku Ytti <saku@ytti.fi> | 2016-02-25 11:27:30 +0200 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2016-02-25 11:27:30 +0200 |
commit | 82da30aa38329208126c37829501956162fa2c4d (patch) | |
tree | 35ca4e2035943edd9d034edaffdb715b45c031a2 /lib/oxidized/input/ssh.rb | |
parent | 83b4524ef8aa3a0caba7bad66eae094c43c21307 (diff) |
fix ssh test
also fix warning about unused variable
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r-- | lib/oxidized/input/ssh.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index ec1a756..fef20d6 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -92,7 +92,7 @@ module Oxidized @output << data @output = @node.model.expects @output end - ch.request_pty (opts={:term=>'vt100'}) do |_ch, success_pty| + ch.request_pty (_opts={:term=>'vt100'}) do |_ch, success_pty| raise NoShell, "Can't get PTY" unless success_pty ch.send_channel_request 'shell' do |_ch, success_shell| raise NoShell, "Can't get shell" unless success_shell |