X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fferm%2Ftemplates%2Finterfaces.conf.erb;h=0b575d46470718e14abe474b611c42cc0fba8404;hb=57975b5ec571a9dd4ea5985cb334b86506e477cd;hp=8092282fc1fa2477e795cada0dbebee5ab1ea496;hpb=fe5c5a3adcbd8921dd4cf1f1e7430b4a5618e0b7;p=mirror%2Fdsa-puppet.git diff --git a/modules/ferm/templates/interfaces.conf.erb b/modules/ferm/templates/interfaces.conf.erb index 8092282fc..0b575d464 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(' ')