diff options
author | ytti <saku@ytti.fi> | 2015-08-15 13:05:22 +0300 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2015-08-15 13:05:22 +0300 |
commit | 764202d88db91242646f15053c64dc052781db61 (patch) | |
tree | 1e18e35c1905fcce2e87438095baca76edd6c0c1 /lib | |
parent | fed87174a3e1c1aa2bf5898548f164841e8a7aa0 (diff) | |
parent | b0b50e8bba592bf9c96c198087dc19b077044f51 (diff) |
Merge pull request #162 from MrRJ45/patch-3
Update nodes.rb
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/nodes.rb | 2 |
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 |