Actually look up required remote server key IDs

set.union() is a side-effect-free function that returns the union of two
sets. This clearly wanted .update(), which is the side-effecting mutator
version.
pull/452/head
Paul "LeoNerd" Evans 2015-12-18 21:36:42 +00:00
parent f85949bde0
commit a6ba41e078
1 changed files with 3 additions and 1 deletions

View File

@ -230,7 +230,9 @@ class Keyring(object):
missing_keys = {}
for group in group_id_to_group.values():
missing_keys.setdefault(group.server_name, set()).union(group.key_ids)
missing_keys.setdefault(group.server_name, set()).update(
group.key_ids
)
for fn in key_fetch_fns:
results = yield fn(missing_keys.items())