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 f325a15  Person entry may not exist
f325a15 is described below

commit f325a15826f6a82115580d1dc1266978269ac161
Author: Sebb <[email protected]>
AuthorDate: Thu Dec 14 12:25:47 2017 +0000

    Person entry may not exist
---
 www/roster/models/group.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/roster/models/group.rb b/www/roster/models/group.rb
index 7aa86a2..42d6f00 100644
--- a/www/roster/models/group.rb
+++ b/www/roster/models/group.rb
@@ -57,7 +57,7 @@ class Group
       response = {
         id: id,
         type: type,
-        members: Hash[group.members.map {|person| [person.id, person.cn]}]
+        members: Hash[group.members.map {|person| [person.id, (person.cn 
rescue '**Entry missing from LDAP people**')]}] # if id not in people
       }
 
       if id == 'hudson-jobadmin'

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to