diff options
author | ytti <saku@ytti.fi> | 2013-05-01 04:49:05 -0700 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2013-05-01 04:49:05 -0700 |
commit | d0de575afa263a9f6f729d0d1a7fa77fdd15600d (patch) | |
tree | 8ce10918fa67cd0e66b173c581481be3809df6b1 /lib/oxidized/input/ssh.rb | |
parent | c252a589b6b0274a17bfe40db3fd57ebeea3beb8 (diff) | |
parent | 17a9fb3d013912eea2a1e834bc0480b677592d71 (diff) |
Merge pull request #4 from nopedial/work-flow
Update powerconnect.rb, catch errors in input.rbs and fix typos in ios.rb
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 3d14a57..430eaa2 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -12,7 +12,7 @@ module Oxidized begin @ssh = Net::SSH.start @node.ip, @node.auth[:username], :password => @node.auth[:password], :timeout => CFG.timeout - rescue Timeout::Error, Net::SSH::Disconnect, Errno::ECONNREFUSED + rescue Timeout::Error, Errno::ECONNREFUSED, Errno::ECONNRESET, Net::SSH::Disconnect return false end open_shell @ssh unless @exec |