From a5cea4fb9a5a4e8eda99c46fdf808af5f3aab32f Mon Sep 17 00:00:00 2001 From: Jasmine Schladen Date: Fri, 23 Oct 2020 09:42:03 -0700 Subject: [PATCH] Skip revoked certs when looking for certs to notify --- lemur/notifications/messaging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lemur/notifications/messaging.py b/lemur/notifications/messaging.py index 3dd4fff7..3928689e 100644 --- a/lemur/notifications/messaging.py +++ b/lemur/notifications/messaging.py @@ -42,6 +42,7 @@ def get_certificates(exclude=None): .filter(Certificate.not_after <= max) .filter(Certificate.notify == True) .filter(Certificate.expired == False) + .filter(Certificate.revoked == False) ) # noqa exclude_conditions = []