syntax error
[mirror/dsa-puppet.git] / files / etc / puppet / lib / puppet / parser / functions / ldapinfo.rb
index a2c95cc..23243c0 100644 (file)
@@ -18,7 +18,7 @@ module Puppet::Parser::Functions
         unless attributes.include?("*")
           next if attributes.any?{ |a|  not x[a] or x[a].empty? }
         end
-        results[x['hostname'] = x
+        results[x['hostname']] = x
       end
     rescue LDAP::ResultError
       raise Puppet::ParseError, "LDAP error"