Signed-off-by: Stephen Gran <steve@lobefin.net>
@def $HOST_DEBIAN_V4 = (<%=
dbs = []
localinfo.keys.sort.each do |node|
+ next unless (keyinfo[node].at(0) and keyinfo[node][0].has_key?('ipHostNumber'))
keyinfo[node][0]['ipHostNumber'].each do |ip|
next if ip =~ /:/
dbs << ip
@def $HOST_DEBIAN_V6 = (<%=
dbs = []
localinfo.keys.sort.each do |node|
+ next unless (keyinfo[node].at(0) and keyinfo[node][0].has_key?('ipHostNumber'))
keyinfo[node][0]['ipHostNumber'].each do |ip|
next if ip =~ /\./
dbs << ip