From e1f241bd5539b797aff7d760352d3fd8eaebd217 Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Wed, 6 Dec 2017 18:32:24 +0200 Subject: [PATCH] Don't send notifications that are marked inactive (#1015) Apparently previously Lemur ignored the "active" flag of notifications. --- 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 d5010e01..0f7dc52f 100644 --- a/lemur/notifications/messaging.py +++ b/lemur/notifications/messaging.py @@ -176,7 +176,7 @@ def needs_notification(certificate): days = (certificate.not_after - now).days for notification in certificate.notifications: - if not notification.options: + if not notification.active or not notification.options: return interval = get_plugin_option('interval', notification.options)