whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Bazley <s...@apache.org>
Subject [whimsy.git] [1/1] Commit 7f39e9c: Pick first (only) entry
Date Sat, 23 Jan 2016 17:38:04 GMT
Commit 7f39e9cedfdbcd2a24be338a35157a6de9335a1b:
    Pick first (only) entry


Branch: refs/heads/master
Author: Sebb <sebb@apache.org>
Committer: Sebb <sebb@apache.org>
Pusher: sebb <sebb@apache.org>

------------------------------------------------------------
lib/whimsy/asf/ldap.rb                                       | + -
------------------------------------------------------------
2 changes: 1 additions, 1 deletions.
------------------------------------------------------------


diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 12445c8..62acec2 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -355,7 +355,7 @@ def self.preload
       Hash[ASF.search_one(base, "cn=*", %w(dn memberUid modifyTimestamp)).map do |results|
         cn = results['dn'].first[/^cn=(.*?),/, 1]
         group = ASF::Group.find(cn)
-        group.modifyTimestamp = results['modifyTimestamp']
+        group.modifyTimestamp = results['modifyTimestamp'].first # it is returned as an array
of 1 entry
         members = results['memberUid']
         group.members = members || []
         [group, members]

Mime
View raw message