diff options
author | Danilo Sousa <danilopopeye@users.noreply.github.com> | 2017-09-11 11:44:44 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-11 11:44:44 -0300 |
commit | f18789556b9b0926e4f5e401e9c722f4812240f1 (patch) | |
tree | ea8f154d971d9e17292799f45fea3443ec5d39d9 /lib/oxidized/node.rb | |
parent | a4174019e55992182a357573022a8ce024284bf7 (diff) | |
parent | 61bebec025482894fff4a4e715598ad8f21444a1 (diff) |
Merge pull request #971 from danilopopeye/ds-worker-done-hook
all nodes done hook
Diffstat (limited to 'lib/oxidized/node.rb')
-rw-r--r-- | lib/oxidized/node.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index 8d0d0af..4f9ae54 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -8,6 +8,7 @@ module Oxidized attr_reader :name, :ip, :model, :input, :output, :group, :auth, :prompt, :vars, :last, :repo attr_accessor :running, :user, :msg, :from, :stats, :retry alias :running? :running + 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. @@ -217,6 +218,7 @@ module Oxidized end #model + # FIXME: warning: instance variable @model not initialized if Oxidized.config.models.has_key?(@model.class.name.to_s.downcase) if Oxidized.config.models[@model.class.name.to_s.downcase].has_key?(key_str) value = Oxidized.config.models[@model.class.name.to_s.downcase][key_str] |