From: Stephen Gran Date: Sat, 6 Mar 2010 15:33:07 +0000 (+0000) Subject: see if global_variables works X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4f6cdd5d270f9bf8ac92e0d4217ccf016d35f5f6;p=dsa-puppet.git see if global_variables works Signed-off-by: Stephen Gran --- diff --git a/modules/ferm/templates/interfaces.conf.erb b/modules/ferm/templates/interfaces.conf.erb index 8092282f..0b575d46 100644 --- a/modules/ferm/templates/interfaces.conf.erb +++ b/modules/ferm/templates/interfaces.conf.erb @@ -1,7 +1,7 @@ -$MUNIN_IFS = (<%= +def $MUNIN_IFS = (<%= ifs = [] interfaces.split(',').each do |iface| - next unless Kernel.local_variables.include?("ipaddress_" + iface) + next unless Kernel.global_variables.include?("ipaddress_" + iface) ifs << iface end ifs.join(' ')