From 3a24cc5ba5af14bff128c512a039abbfe5266bfa Mon Sep 17 00:00:00 2001 From: Jari Salo Date: Mon, 25 Aug 2014 18:54:45 +0300 Subject: Return true if node_want is nil - Otherwise all nodes can not be loaded. --- lib/oxidized/nodes.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/oxidized/nodes.rb b/lib/oxidized/nodes.rb index 227f656..032118d 100644 --- a/lib/oxidized/nodes.rb +++ b/lib/oxidized/nodes.rb @@ -29,6 +29,7 @@ module Oxidized end def node_want? node_want, node + return true unless node_want node_want_ip = (IPAddr.new(node_want) rescue false) name_is_ip = (IPAddr.new(node[:name]) rescue false) if name_is_ip and node_want_ip == node[:name] -- cgit v1.2.1