You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2016/12/21 23:16:35 UTC

[whimsy] branch master updated: Sort fingerprints because the order seems to vary between fetches

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

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

The following commit(s) were added to refs/heads/master by this push:
       new  3869a12   Sort fingerprints because the order seems to vary between fetches
3869a12 is described below

commit 3869a12078277ec882ce2a7864d5b38cef1ff139
Author: Sebb <se...@apache.org>
AuthorDate: Wed Dec 21 23:16:09 2016 +0000

    Sort fingerprints because the order seems to vary between fetches
---
 www/roster/public_ldap_people.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/roster/public_ldap_people.rb b/www/roster/public_ldap_people.rb
index 487b506..55a1433 100644
--- a/www/roster/public_ldap_people.rb
+++ b/www/roster/public_ldap_people.rb
@@ -39,7 +39,8 @@ def makeEntry(hash, e)
     end
     # only add entry if there is a fingerprint
     if not e.pgp_key_fingerprints.empty?
-      hash[e.id][:key_fingerprints] = e.pgp_key_fingerprints
+      # need to sort to avoid random changes which seem to occur for fingerprints
+      hash[e.id][:key_fingerprints] = e.pgp_key_fingerprints.sort
     end
   end
 end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].