mirror of
https://github.com/cunnymessiah/keychecker.git
synced 2026-05-10 18:39:04 -07:00
bump q'd keys up to the top of the list
This commit is contained in:
@@ -173,6 +173,7 @@ def pretty_print_aws_keys(keys):
|
||||
|
||||
if useless_keys:
|
||||
print(f"\nValidated {len(useless_keys)} AWS keys that are deemed useless and most likely s3 slop (can't be used to setup Bedrock/Claude)")
|
||||
useless_keys = sorted(useless_keys, key=lambda x: 'Quarantined Key' not in x.useless_reasons)
|
||||
for key in useless_keys:
|
||||
print(f'{key.api_key}' + (f' | {key.username}' if key.username != "" else "")
|
||||
+ (f' | REASON - {key.useless_reasons}' if len(key.useless_reasons) > 0 else ''))
|
||||
|
||||
Reference in New Issue
Block a user