diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/node.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index 60b335f..6f89b56 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -11,8 +11,7 @@ module Oxidized def initialize opt Oxidized.logger.debug 'resolving DNS for %s...' % opt[:name] # remove the prefix if an IP Address is provided with one as IPAddr converts it to a network address. - ip_address = opt[:ip] - ip_addr,ip_net = ip_address.to_s.split("/") + ip_addr, _ = opt[:ip].to_s.split("/") Oxidized.logger.debug 'IPADDR %s' % ip_addr.to_s @name = opt[:name] @ip = IPAddr.new(ip_addr).to_s rescue nil |