From edd53d8c50b2c26178634dea07241706220e0325 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Sat, 20 Apr 2019 14:01:42 +0300 Subject: [PATCH] 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 Reviewed-By: Christian Heimes --- daemons/dnssec/ipa-dnskeysync-replica.in | 1 + 1 file changed, 1 insertion(+) diff --git a/daemons/dnssec/ipa-dnskeysync-replica.in b/daemons/dnssec/ipa-dnskeysync-replica.in index 9f2d9d210..927b07930 100644 --- a/daemons/dnssec/ipa-dnskeysync-replica.in +++ b/daemons/dnssec/ipa-dnskeysync-replica.in @@ -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