summaryrefslogtreecommitdiff
path: root/lib/oxidized/input/ssh.rb
diff options
context:
space:
mode:
authorPaul Sherratt <me@paul.sh>2013-09-06 15:19:21 +0100
committerPaul Sherratt <me@paul.sh>2013-09-06 15:19:21 +0100
commitedaf887b86d84378c94ef02fe7200e70f93f9279 (patch)
tree9aaea7f1854816eab90119166f947d42270f46b1 /lib/oxidized/input/ssh.rb
parent9dc92d9c8d1760efba8015db659e95bc6cd1a070 (diff)
more errors to rescue from
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r--lib/oxidized/input/ssh.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb
index c0594db..dc90354 100644
--- a/lib/oxidized/input/ssh.rb
+++ b/lib/oxidized/input/ssh.rb
@@ -39,7 +39,7 @@ module Oxidized
disconnect_cli
@ssh.loop
@ssh.close if not @ssh.closed?
- rescue Net::SSH::Disconnect
+ rescue Errno::ECONNRESET, Net::SSH::Disconnect
end
end