summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-08-15 13:05:22 +0300
committerytti <saku@ytti.fi>2015-08-15 13:05:22 +0300
commit764202d88db91242646f15053c64dc052781db61 (patch)
tree1e18e35c1905fcce2e87438095baca76edd6c0c1 /lib
parentfed87174a3e1c1aa2bf5898548f164841e8a7aa0 (diff)
parentb0b50e8bba592bf9c96c198087dc19b077044f51 (diff)
Merge pull request #162 from MrRJ45/patch-3
Update nodes.rb
Diffstat (limited to 'lib')
-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