def print_block(fd, kind, hash, exclude_keys)
fd.puts "define #{kind} {"
hash.keys.sort.each{ |key|
- next if key == '_extinfo'
- next if key == '_hostgroups'
- next if key == '_memberlist'
+ next if key[0,1] == '_'
next if exclude_keys.include? key
fd.puts " #{key} #{hash[key]}"
}