commit:     f236426ca3977317586278b399406529f3975825
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 24 03:12:50 2015 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Tue Mar 24 03:12:50 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-keys.git/commit/?id=f236426c

gkeyldap/actions.py: Ignore 'undefined' for the keyid,longkeyid fields.

Interim change until the keyid's and longkeyid's are dropped from LDAP.

 gkeys-ldap/gkeyldap/actions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gkeys-ldap/gkeyldap/actions.py b/gkeys-ldap/gkeyldap/actions.py
index 7e951e0..9558ed0 100644
--- a/gkeys-ldap/gkeyldap/actions.py
+++ b/gkeys-ldap/gkeyldap/actions.py
@@ -206,7 +206,7 @@ class Actions(object):
                 keyid_found = True
         elif values and attr in ['fingerprint']:
             values = [v.replace(' ', '') for v in values]
-        if 'undefined' in values:
+        if 'undefined' in values and attr not in ['keyid', 'longkeyid']:
             self.logger.error('ERROR in LDAP info for: %s, %s'
                               % (info['uid'][0], info['cn'][0]))
             self.logger.error('  %s = "undefined"' % (field))

Reply via email to