diff --git a/scripts/state_hub_signing_acceptance.py b/scripts/state_hub_signing_acceptance.py index f13ffcc..4a832ea 100644 --- a/scripts/state_hub_signing_acceptance.py +++ b/scripts/state_hub_signing_acceptance.py @@ -27,7 +27,7 @@ if token: old_rejected=None if x.get('old_token'): try: _verify_preflight_token(x['old_token']) - except RenamePreconditionFailed: old_rejected=True + except RenamePreconditionFailed as e: old_rejected=str(e)=='Invalid repository rename preflight token' else: old_rejected=False print(json.dumps({'key_matches':hmac.compare_digest(settings.repository_rename_preflight_secret or '',x['key']), 'signed_preflight_valid':valid, 'old_token_rejected':old_rejected, 'blockers':[b.get('code') for b in report['blockers']], 'token':token, 'health':health.get('instance_role')=='primary' and health.get('instance_label')=='railiance01'})) '''