Ensuring the inactive certificates are not alerted on. (#418)

This commit is contained in:
kevgliss 2016-08-29 15:46:35 -07:00 committed by GitHub
parent 53d0636574
commit ca2944d566

View File

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