Merge pull request #3443 from jtschladen/fix-docs

Fix docs
This commit is contained in:
Jasmine Schladen 2021-02-24 18:04:29 -08:00 committed by GitHub
commit d823f5f767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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