This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 01942434 Standardise on ASF.ldap for getting connection
01942434 is described below

commit 0194243460e2c4586792b52d30c8835065e32e61
Author: Sebb <[email protected]>
AuthorDate: Fri Jan 6 18:46:44 2023 +0000

    Standardise on ASF.ldap for getting connection
---
 lib/whimsy/asf/ldap.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 986d0c0f..02cfb010 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -308,7 +308,7 @@ module ASF
     attempts_left = [ASF::LDAP.hosts.length, 2].max
     begin
       attempts_left -= 1
-      ASF._init_ldap unless @ldap
+      ASF.ldap # creates connection if necessary
       return [] unless @ldap
 
       target = @ldap.get_option(::LDAP::LDAP_OPT_HOST_NAME) rescue '?'

Reply via email to