diff options
author | Anton Aksola <anton.aksola@nebula.fi> | 2014-05-05 15:48:12 +0300 |
---|---|---|
committer | Anton Aksola <anton.aksola@nebula.fi> | 2014-05-05 15:48:12 +0300 |
commit | efa7ee3789ace917a66904252090986af0400c25 (patch) | |
tree | f88b93d614a40d92cadae07c357eda960a39757e /lib/oxidized/config/vars.rb | |
parent | cc8fea7b25f9f3b758b7b2eae0f1aec82cc6644a (diff) |
missing edits
Diffstat (limited to 'lib/oxidized/config/vars.rb')
-rw-r--r-- | lib/oxidized/config/vars.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/oxidized/config/vars.rb b/lib/oxidized/config/vars.rb index bc94049..0d6aaa7 100644 --- a/lib/oxidized/config/vars.rb +++ b/lib/oxidized/config/vars.rb @@ -2,9 +2,9 @@ module Oxidized::Config::Vars # convenience method for accessing node, group or global level user variables # nil values will be ignored def vars name - r = @node.vars[name] - r ||= CFG.groups[@node.group].vars[name.to_s] if CFG.groups.has_key?(@node.group) - r ||= CFG.vars[name.to_s] + r = @node.vars[name] unless @node.vars.nil? + r ||= Oxidized::CFG.groups[@node.group].vars[name.to_s] if Oxidized::CFG.groups.has_key?(@node.group) + r ||= Oxidized::CFG.vars[name.to_s] end end |