Fix up process_v2_response
This commit is contained in:
parent
2dcddf83f3
commit
f4964e666a
|
@ -461,8 +461,8 @@ class Keyring(object):
|
|||
old_verify_keys[key_id] = verify_key
|
||||
|
||||
results = {}
|
||||
for server_name, keys_dict in response_json["signatures"].items():
|
||||
for key_id in keys_dict:
|
||||
server_name = response_json["server_name"]
|
||||
for key_id in response_json["signatures"].get(server_name, {}):
|
||||
if key_id not in response_json["verify_keys"]:
|
||||
raise ValueError(
|
||||
"Key response must include verification keys for all"
|
||||
|
|
Loading…
Reference in New Issue