X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=files%2Fetc%2Fpuppet%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fldapinfo.rb;h=3564de329ee99d31af9f762988bc9291c631edb9;hb=13ea760c33a9f907cadda793626669ba0c91e27c;hp=c65351f3596064b76bb768c8be0133645d7b68c6;hpb=6f44349a09fe8330b1c3304a9a96e865ed3022de;p=mirror%2Fdsa-puppet.git diff --git a/files/etc/puppet/lib/puppet/parser/functions/ldapinfo.rb b/files/etc/puppet/lib/puppet/parser/functions/ldapinfo.rb index c65351f35..3564de329 100644 --- a/files/etc/puppet/lib/puppet/parser/functions/ldapinfo.rb +++ b/files/etc/puppet/lib/puppet/parser/functions/ldapinfo.rb @@ -19,8 +19,8 @@ module Puppet::Parser::Functions 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"