]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - files/etc/puppet/lib/puppet/parser/functions/allnodeinfo.rb
hmm, I could have sworn this was working earlier ...
[dsa-puppet.git] / files / etc / puppet / lib / puppet / parser / functions / allnodeinfo.rb
index 3eab872d10187862f8d946d19cb6fdebf88eed50..a20e16ee89902d01d3489cc1dbafa30a9d5ac6ae 100644 (file)
@@ -10,7 +10,7 @@ module Puppet::Parser::Functions
     results = []
     filter = '(hostname=*)'
     begin
-      ldap.search2('ou=hosts,dc=debian,dc=org', LDAP::LDAP_SCOPE_SUBTREE, filter, attrs=attributes, false, 0, 0, s_attr="hostname") do |x|
+      ldap.search2('ou=hosts,dc=debian,dc=org', LDAP::LDAP_SCOPE_SUBTREE, filter, attrs=attributes, false, 0, 0, s_attr="hostname").each do |x|
         # If a returned value doesn't have all the attributes we're searching for, skip
         attributes.each do |a|
           next if x[a].empty?