summaryrefslogtreecommitdiff
path: root/lib/oxidized/nodes.rb
diff options
context:
space:
mode:
authorMrRJ45 <couton@gmail.com>2015-08-15 08:52:28 +0100
committerMrRJ45 <couton@gmail.com>2015-08-15 08:52:28 +0100
commitb0b50e8bba592bf9c96c198087dc19b077044f51 (patch)
treedf8d611f53c43fc69feee1f170accd663b69d352 /lib/oxidized/nodes.rb
parent5f892762c05e425f8d4d0d8b36371ed0e9114ca2 (diff)
Update nodes.rb
Fixing ability to queue with /node/next/<ip> Was used in Issue #60 to fix the syslog daemon
Diffstat (limited to 'lib/oxidized/nodes.rb')
-rw-r--r--lib/oxidized/nodes.rb2
1 files changed, 1 insertions, 1 deletions
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