Stop repeating certs when sending expiration notifications to security team email

This commit is contained in:
Jasmine Schladen 2020-11-04 10:53:27 -08:00
parent 9ad9f349ba
commit 4cc0f6bb60

View File

@ -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]