This is an automated email from the ASF dual-hosted git repository.
rubys 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 c0f3415 map committee to project dn
c0f3415 is described below
commit c0f341502927e76b4ecd278319ef5cf96a58f6ec
Author: Sam Ruby <[email protected]>
AuthorDate: Wed Jun 28 18:52:07 2017 -0400
map committee to project dn
---
lib/whimsy/asf/ldap.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 180d625..da45587 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -1031,7 +1031,11 @@ module ASF
# Designated Name from LDAP
def dn
- @dn ||= ASF.search_one(base, "cn=#{name}", 'dn').first.first
+ if GUINEAPIGS.include? name
+ @dn ||= ASF::Project.find(name).dn
+ else
+ @dn ||= ASF.search_one(base, "cn=#{name}", 'dn').first.first
+ end
end
# DEPRECATED remove people from a committee. Call #remove_owners instead.
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].