From 5df2670577a970e2780b18d8f9e8538a5f436250 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 8 Nov 2009 19:08:27 +0000 Subject: [PATCH] hmm, I could have sworn this was working earlier ... Signed-off-by: Stephen Gran --- files/etc/puppet/lib/puppet/parser/functions/allnodeinfo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/etc/puppet/lib/puppet/parser/functions/allnodeinfo.rb b/files/etc/puppet/lib/puppet/parser/functions/allnodeinfo.rb index 3eab872d..a20e16ee 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? -- 2.39.2