From: Stephen Gran Date: Sun, 8 Nov 2009 19:08:27 +0000 (+0000) Subject: hmm, I could have sworn this was working earlier ... X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=5df2670577a970e2780b18d8f9e8538a5f436250;p=mirror%2Fdsa-puppet.git hmm, I could have sworn this was working earlier ... Signed-off-by: Stephen Gran --- diff --git a/files/etc/puppet/lib/puppet/parser/functions/allnodeinfo.rb b/files/etc/puppet/lib/puppet/parser/functions/allnodeinfo.rb index 3eab872d1..a20e16ee8 100644 --- a/files/etc/puppet/lib/puppet/parser/functions/allnodeinfo.rb +++ b/files/etc/puppet/lib/puppet/parser/functions/allnodeinfo.rb @@ -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?