diff options
author | ytti <saku@ytti.fi> | 2015-02-26 20:18:09 +0200 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2015-02-26 20:18:09 +0200 |
commit | 28339dc8796c9510c0507a69eabfdd9e96768226 (patch) | |
tree | 9edc98544814be1176911db3a8d5b4e3a690d24d /lib/oxidized/node.rb | |
parent | fefe55e69502df7b5b3691facd0deaa53750d61c (diff) | |
parent | 87c2ad0f0987b71f2bb01a5907b97750af125ccf (diff) |
Merge pull request #83 from fhibler/master
Resolving #80 and #81
Diffstat (limited to 'lib/oxidized/node.rb')
-rw-r--r-- | lib/oxidized/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |