From 4f6cdd5d270f9bf8ac92e0d4217ccf016d35f5f6 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sat, 6 Mar 2010 15:33:07 +0000 Subject: [PATCH] see if global_variables works Signed-off-by: Stephen Gran --- modules/ferm/templates/interfaces.conf.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(' ') -- 2.39.2