diff options
author | ytti <saku@ytti.fi> | 2015-11-06 13:05:36 +0200 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2015-11-06 13:05:36 +0200 |
commit | d3e715c59a269e7e69b9f8e5c0a29c78eed7dd2e (patch) | |
tree | ae926bef9ec3aeed0b3ecd8c4b7907153f10aeaa /lib | |
parent | c0dc2ee2af5b6be0b237fa5a6cb60aed14943466 (diff) | |
parent | dc5f7285c87dc45763a24636a95c4081552356de (diff) |
Merge pull request #233 from marnovdm/feature/minor-tweaks
Some minor tweaks for Oxidized
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/node.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index d50317f..c847416 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -9,6 +9,9 @@ module Oxidized attr_accessor :running, :user, :msg, :from, :stats, :retry alias :running? :running def initialize opt + if CFG.debug == true or opt[:debug] == true + puts 'resolving DNS for %s...' % opt[:name] + end @name = opt[:name] @ip = IPAddr.new(opt[:ip]).to_s rescue nil @ip ||= Resolv.new.getaddress @name |