Don't send notifications that are marked inactive (#1015)

Apparently previously Lemur ignored the "active" flag of notifications.
This commit is contained in:
Marti Raudsepp 2017-12-06 18:32:24 +02:00 committed by kevgliss
parent ad88637f22
commit e1f241bd55
1 changed files with 1 additions and 1 deletions

View File

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