diff options
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r-- | lib/oxidized/input/ssh.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index b060418..3fdaa70 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -5,6 +5,7 @@ module Oxidized RescueFail = [ Net::SSH::Disconnect, Net::SSH::AuthenticationFailed, + RuntimeError, ] include CLI class NoShell < StandardError; end @@ -41,7 +42,7 @@ module Oxidized disconnect_cli @ssh.loop @ssh.close if not @ssh.closed? - rescue Errno::ECONNRESET, Net::SSH::Disconnect + rescue Errno::ECONNRESET, Net::SSH::Disconnect, IOError end end |