diff options
author | Saku Ytti <saku@ytti.fi> | 2018-06-08 00:24:41 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2018-06-08 00:24:41 +0300 |
commit | 3e6dc8acc5268c76f009299d43adc61867dd8343 (patch) | |
tree | 0218c23acf9b5264aa7e2a29041b4d64df4c0ef4 /lib/oxidized/node.rb | |
parent | 4d92efb4eca3b82ad4db7d8b0b3dff5c09eab49d (diff) |
We should resolve model first
So that input/output can be configured under model
Diffstat (limited to 'lib/oxidized/node.rb')
-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 04c1f08..3c32b8e 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -19,9 +19,9 @@ module Oxidized @ip ||= Resolv.new.getaddress(@name) if Oxidized.config.resolve_dns? @ip ||= @name @group = opt[:group] + @model = resolve_model opt @input = resolve_input opt @output = resolve_output opt - @model = resolve_model opt @auth = resolve_auth opt @prompt = resolve_prompt opt @vars = opt[:vars] @@ -219,7 +219,6 @@ 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] |