From 0a9ff589905b4637dc2c824d761dfbfec6cb00db Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Wed, 1 May 2013 15:16:54 +0300 Subject: Net::ReadTimeout is ruby 2.0.0 specific use TimeoutError for compatibility --- 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 f1222d8..c4c8bab 100644 --- a/lib/oxidized/input/telnet.rb +++ b/lib/oxidized/input/telnet.rb @@ -96,7 +96,7 @@ class Net::Telnet rest = '' until(prompt === line and not IO::select([@sock], nil, nil, waittime)) unless IO::select([@sock], nil, nil, time_out) - raise Net::ReadTimeout, "timed out while waiting for more data" + raise TimeoutError, "timed out while waiting for more data" end begin c = @sock.readpartial(1024 * 1024) -- cgit v1.2.1