summaryrefslogtreecommitdiffstats
path: root/daemons
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-09-26 14:08:17 +0200
committerMartin Basti <mbasti@redhat.com>2016-09-27 13:35:58 +0200
commit0f88f8fe889ae4801fc8d5ece1ad51c5246718ac (patch)
tree4f38fb6210abaa9f354353df2abda96d1b8fb612 /daemons
parent452b08754d02b89c0e3117b83d9156e6110943c9 (diff)
downloadfreeipa-0f88f8fe889ae4801fc8d5ece1ad51c5246718ac.tar.gz
freeipa-0f88f8fe889ae4801fc8d5ece1ad51c5246718ac.tar.xz
freeipa-0f88f8fe889ae4801fc8d5ece1ad51c5246718ac.zip
Remove unused variables in the code
This commit removes unused variables or rename variables as "expected to be unused" by using "_" prefix. This covers only cases where fix was easy or only one unused variable was in a module Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'daemons')
-rwxr-xr-xdaemons/dnssec/ipa-dnskeysync-replica2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/dnssec/ipa-dnskeysync-replica b/daemons/dnssec/ipa-dnskeysync-replica
index 69a3a68e7..fbfee93b8 100755
--- a/daemons/dnssec/ipa-dnskeysync-replica
+++ b/daemons/dnssec/ipa-dnskeysync-replica
@@ -49,7 +49,7 @@ def update_metadata_set(log, source_set, target_set):
def find_unwrapping_key(log, localhsm, wrapping_key_uri):
wrap_keys = localhsm.find_keys(uri=wrapping_key_uri)
# find usable unwrapping key with matching ID
- for key_id, key in wrap_keys.items():
+ for key_id in wrap_keys.keys():
unwrap_keys = localhsm.find_keys(id=key_id, cka_unwrap=True)
if len(unwrap_keys) > 0:
return unwrap_keys.popitem()[1]