From 4cc0f6bb60fb6fa11f5d42fb4ccc182b7adc3b24 Mon Sep 17 00:00:00 2001 From: Jasmine Schladen Date: Wed, 4 Nov 2020 10:53:27 -0800 Subject: [PATCH] Stop repeating certs when sending expiration notifications to security team email --- lemur/notifications/messaging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/notifications/messaging.py b/lemur/notifications/messaging.py index 3928689e..3fa339d2 100644 --- a/lemur/notifications/messaging.py +++ b/lemur/notifications/messaging.py @@ -137,11 +137,11 @@ def send_expiration_notifications(exclude): # security team gets all security_email = current_app.config.get("LEMUR_SECURITY_TEAM_EMAIL") - security_data = [] for owner, notification_group in get_eligible_certificates(exclude=exclude).items(): for notification_label, certificates in notification_group.items(): notification_data = [] + security_data = [] notification = certificates[0][0]