mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix inconsistent-return-statements
in ipa-dnskeysync-replica
This problem was discovered by pylint. Fixes: https://pagure.io/freeipa/issue/7921 Signed-off-by: Stanislav Levin <slev@altlinux.org> Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
parent
921d803d15
commit
edd53d8c50
@ -58,6 +58,7 @@ def find_unwrapping_key(localhsm, wrapping_key_uri):
|
||||
unwrap_keys = localhsm.find_keys(id=key_id, cka_unwrap=True)
|
||||
if len(unwrap_keys) > 0:
|
||||
return unwrap_keys.popitem()[1]
|
||||
return None
|
||||
|
||||
def ldap2replica_master_keys_sync(ldapkeydb, localhsm):
|
||||
## LDAP -> replica master key synchronization
|
||||
|
Loading…
Reference in New Issue
Block a user