Improved Clarity on Key Evaluation Return Messages
This commit is contained in:
parent
38226f149a
commit
998f0dc883
1 changed files with 3 additions and 3 deletions
|
|
@ -121,7 +121,7 @@ def is_the_key_to_blame(
|
|||
if not result_of_comparison:
|
||||
error_msg = "New key is the SAME as the old one."
|
||||
ticket_observer.notify("preparing", subject=error_msg)
|
||||
return {"valid": False, "message": "same"}
|
||||
return {"valid": False, "comparison": "same"}
|
||||
|
||||
status_update = "New key is DIFFERENT from the old one!"
|
||||
ticket_observer.notify("preparing", subject=status_update)
|
||||
|
|
@ -142,9 +142,9 @@ def is_the_key_to_blame(
|
|||
|
||||
if quantity_results > 0:
|
||||
logger.debug("Therefore, the new key works.")
|
||||
return {"valid": True, "comparison": "different", "matters": False}
|
||||
return {"valid": True, "comparison": "different"}
|
||||
else:
|
||||
logger.debug(
|
||||
"Therefore, the new key doesn't help. It is different, but also produces invalid blind signatures."
|
||||
)
|
||||
return {"valid": False, "comparison": "different", "matters": False}
|
||||
return {"valid": False, "comparison": "different"}
|
||||
|
|
|
|||
Loading…
Reference in a new issue