notify-api-317 fix the scrubbing of pii for successful notifications

This commit is contained in:
Kenneth Kehl
2023-06-27 10:48:14 -07:00
parent 12f3a7ee5d
commit 17e9fc1e8f
4 changed files with 31 additions and 10 deletions

View File

@@ -84,6 +84,6 @@ class AwsCloudwatchClient(Client):
if all_failed_events and len(all_failed_events) > 0:
event = all_failed_events[0]
message = json.loads(event['message'])
return "fail", message['delivery']['providerResponse']
return "failure", message['delivery']['providerResponse']
raise Exception(f'No event found for message_id {message_id} notification_id {notification_id}')