aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2015-03-23 20:12:50 -0700
committerBrian Dolbec <dolsen@gentoo.org>2015-03-23 20:12:50 -0700
commitf236426ca3977317586278b399406529f3975825 (patch)
tree283f9b674a65ed622a0b6f881182ac375ae4203b /gkeys-ldap
parentgkeys/checks.py: Downgrade the logging to warn from error (diff)
downloadgentoo-keys-f236426ca3977317586278b399406529f3975825.tar.gz
gentoo-keys-f236426ca3977317586278b399406529f3975825.tar.bz2
gentoo-keys-f236426ca3977317586278b399406529f3975825.zip
gkeyldap/actions.py: Ignore 'undefined' for the keyid,longkeyid fields.
Interim change until the keyid's and longkeyid's are dropped from LDAP.
Diffstat (limited to 'gkeys-ldap')
-rw-r--r--gkeys-ldap/gkeyldap/actions.py2
1 files changed, 1 insertions, 1 deletions
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))