]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
hmm, I could have sworn this was working earlier ...
authorStephen Gran <steve@lobefin.net>
Sun, 8 Nov 2009 19:08:27 +0000 (19:08 +0000)
committerStephen Gran <steve@lobefin.net>
Sun, 8 Nov 2009 19:08:27 +0000 (19:08 +0000)
Signed-off-by: Stephen Gran <steve@lobefin.net>
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?