From c90c4db50796e3708499c93c871d1ab8968f092a Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Mon, 21 Jul 2014 16:17:09 +0300 Subject: Fix bug in 'vars.rb' We need to return value of 'r' instead of value of previous evaluation. --- lib/oxidized/config/vars.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oxidized/config') diff --git a/lib/oxidized/config/vars.rb b/lib/oxidized/config/vars.rb index 40e4808..1fd81ef 100644 --- a/lib/oxidized/config/vars.rb +++ b/lib/oxidized/config/vars.rb @@ -5,5 +5,6 @@ module Oxidized::Config::Vars 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] if Oxidized::CFG.vars.has_key?(name) + r end end -- cgit v1.2.1