From b0b50e8bba592bf9c96c198087dc19b077044f51 Mon Sep 17 00:00:00 2001 From: MrRJ45 Date: Sat, 15 Aug 2015 08:52:28 +0100 Subject: Update nodes.rb Fixing ability to queue with /node/next/ Was used in Issue #60 to fix the syslog daemon --- lib/oxidized/nodes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized') diff --git a/lib/oxidized/nodes.rb b/lib/oxidized/nodes.rb index d25fbe7..cb2ce7b 100644 --- a/lib/oxidized/nodes.rb +++ b/lib/oxidized/nodes.rb @@ -111,7 +111,7 @@ module Oxidized end def find_index node - index { |e| e.name == node } + index { |e| e.name == node or e.ip == node} end # @param node node which is removed from nodes list -- cgit v1.2.1