diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2015-03-23 20:12:50 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2015-03-23 20:12:50 -0700 |
commit | f236426ca3977317586278b399406529f3975825 (patch) | |
tree | 283f9b674a65ed622a0b6f881182ac375ae4203b /gkeys-ldap | |
parent | gkeys/checks.py: Downgrade the logging to warn from error (diff) | |
download | gentoo-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.py | 2 |
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)) |