This commit is contained in:
Jasmine Schladen 2021-02-24 17:42:28 -08:00
parent 0136366c83
commit a7f8da91b8
2 changed files with 3 additions and 3 deletions

BIN
celerybeat-schedule Normal file

Binary file not shown.

View File

@ -11,7 +11,7 @@ import arrow
import boto3
from flask import current_app
from lemur.plugins.lemur_aws.plugin import SNSNotificationPlugin
from lemur.plugins.bases import ExpirationNotificationPlugin
def publish(topic_arn, certificates, notification_type, options, **kwargs):
@ -66,8 +66,8 @@ def format_message(certificate, notification_type, options):
def calculate_expiration_days(options):
unit = SNSNotificationPlugin.get_option("unit", options)
interval = SNSNotificationPlugin.get_option("interval", options)
unit = ExpirationNotificationPlugin.get_option("unit", options)
interval = ExpirationNotificationPlugin.get_option("interval", options)
if unit == "weeks":
return interval * 7