diff --git a/notifications_consumer/config.py b/notifications_consumer/config.py index f61f4bb2d066050941bd44f51ffdff1a3f09560b..5c5c207dcb35dcf8089d434069208fb62cdadd1d 100644 --- a/notifications_consumer/config.py +++ b/notifications_consumer/config.py @@ -112,7 +112,7 @@ class Config: # Backend SEND_NOTIFICATION_BACKEND_URL = os.getenv("SEND_NOTIFICATION_BACKEND_URL") SEND_NOTIFICATION_BACKEND_URL_VERIFY = ast.literal_eval(os.getenv("SEND_NOTIFICATION_BACKEND_URL_VERIFY", "True")) - NOTIFICATION_SOURCE = "email" + NOTIFICATION_SOURCE = "EMAIL" # Priority CRITICAL_PRIORITY = os.getenv("CRITICAL_PRIORITY", "critical") diff --git a/scripts/docker-send-email-gateway.py b/scripts/docker-send-email-gateway.py index 8b1487cd51132ce532934a913456b237e1d8e23e..bf2eab20dceac608d85329612d5f4d8e45fae79f 100644 --- a/scripts/docker-send-email-gateway.py +++ b/scripts/docker-send-email-gateway.py @@ -9,7 +9,7 @@ message_body = r"""{ "subject":"This week news!", "content":"<p>Test email content<p>", "to":"service+cern-news+normal@dovecotmta.cern.ch", -"source":"email" +"source":"EMAIL" } """ conn.send( body=message_body,