From efa7ee3789ace917a66904252090986af0400c25 Mon Sep 17 00:00:00 2001 From: Anton Aksola Date: Mon, 5 May 2014 15:48:12 +0300 Subject: missing edits --- lib/oxidized/config/vars.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/oxidized/config') 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 -- cgit v1.2.1