Don't send notifications that are marked inactive (#1015)
Apparently previously Lemur ignored the "active" flag of notifications.
This commit is contained in:
parent
ad88637f22
commit
e1f241bd55
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue