unless attributes.include?("*")
next if attributes.any?{ |a| not x[a] or x[a].empty? }
end
- results[x['hostname']] = []
- results[x['hostname']] << x
+ results[x['hostname'][0]] = []
+ results[x['hostname'][0]] << x
end
rescue LDAP::ResultError
raise Puppet::ParseError, "LDAP error"