summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/ssh.rb
diff options
context:
space:
mode:
authorWild Kat <wk@users.noreply.github.com>2018-09-12 11:23:45 +0200
committerGitHub <noreply@github.com>2018-09-12 11:23:45 +0200
commit7c02a230dc970c2946770f6893e35c627b6b1ec0 (patch)
treed77395371f89aa8efe01d7fa8a194fb3bf9ed58c /lib/oxidized/input/ssh.rb
parent58c5310ae1406f1b6d7f1794d8574597c8698138 (diff)
add a new line after guard clauses for better visual flow (#1520)
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r--lib/oxidized/input/ssh.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb
index 11b0ae6..a2e049c 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -85,6 +85,7 @@ module Oxidized
end
ch.request_pty (@pty_options) 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
end
@@ -112,6 +113,7 @@ module Oxidized
sleep 0.1
match = regexps.find { |regexp| @output.match regexp }
return match if match
+
true
end
end