From b30ca8b31e23ea9f518c92e2ef51f85d8e7a0584 Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 26 Apr 2013 17:03:01 +0300 Subject: Fix: telnet exceptions, broken json/ext, typo Kudos to Samer Abdel-Hafez for noticing --- lib/oxidized/input/telnet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/input') diff --git a/lib/oxidized/input/telnet.rb b/lib/oxidized/input/telnet.rb index 6dae2d6..f946e92 100644 --- a/lib/oxidized/input/telnet.rb +++ b/lib/oxidized/input/telnet.rb @@ -16,7 +16,7 @@ module Oxidized expect password @telnet.puts @node.auth[:password] expect @node.prompt - rescue Errno::ECONNREFUSED, Net::OpenTimeout, Net::ReadTimeout + rescue Errno::ECONNREFUSED, Timeout::Error return false end end -- cgit v1.2.1