From 76e46e37650653697ed234b134a881edd598b255 Mon Sep 17 00:00:00 2001 From: Florian Hibler Date: Thu, 26 Feb 2015 17:26:41 +0000 Subject: Resolves #80 --- lib/oxidized/nodes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/nodes.rb b/lib/oxidized/nodes.rb index 3586b97..cb2fbc5 100644 --- a/lib/oxidized/nodes.rb +++ b/lib/oxidized/nodes.rb @@ -23,8 +23,8 @@ module Oxidized Log.error "node %s is not resolvable, raised %s with message '%s'" % [node, err.class, err.message] end end - Log.info "Loaded #{size} nodes" size == 0 ? replace(new) : update_nodes(new) + Log.info "Loaded #{size} nodes" end end -- cgit v1.2.1 From 87c2ad0f0987b71f2bb01a5907b97750af125ccf Mon Sep 17 00:00:00 2001 From: Florian Hibler Date: Thu, 26 Feb 2015 17:43:34 +0000 Subject: Resolves #81 --- lib/oxidized/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index 2d41600..253de53 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -11,7 +11,7 @@ module Oxidized def initialize opt @name = opt[:name] @ip = IPAddr.new(opt[:ip]).to_s rescue nil - @ip ||= Resolv.getaddress @name + @ip ||= Resolv.new.getaddress @name @group = opt[:group] @input = resolve_input opt @output = resolve_output opt -- cgit v1.2.1