Ensuring the inactive certificates are not alerted on. (#418)
This commit is contained in:
parent
53d0636574
commit
ca2944d566
|
@ -160,6 +160,10 @@ def _is_eligible_for_notifications(cert):
|
|||
:param cert:
|
||||
:return:
|
||||
"""
|
||||
# inactive certificates are not notified.
|
||||
if not cert.active:
|
||||
return
|
||||
|
||||
now = arrow.utcnow()
|
||||
days = (cert.not_after - now.naive).days
|
||||
|
||||
|
|
Loading…
Reference in New Issue