continue on with no data. We'll do that by raising a puppet parse error
exception, which will make the client log the problem.
Signed-off-by: Stephen Gran <steve@lobefin.net>
results << x
end
rescue LDAP::ResultError
+ raise Puppet::ParseError, "LDAP error"
rescue RuntimeError
+ raise Puppet::ParseError, "No data returned from search"
ensure
ldap.unbind
end
results['ldap'] << x
end
rescue LDAP::ResultError
+ raise Puppet::ParseError, "LDAP error"
rescue RuntimeError
+ raise Puppet::ParseError, "No data returned from search"
ensure
ldap.unbind
end