Refactors the default notification option. Also ensures that notifications and destinations are easier to test. (#437)

This commit is contained in:
kevgliss
2016-10-09 00:06:53 -07:00
committed by GitHub
parent 72a390c563
commit 96e42c793e
9 changed files with 69 additions and 13 deletions

View File

@ -236,7 +236,7 @@ def create_default_expiration_notifications(name, recipients):
inter.extend(options)
n = create(
label="{name}_{interval}_DAY".format(name=name, interval=i),
plugin_name="email-notification",
plugin_name=current_app.config.get("LEMUR_DEFAULT_NOTIFICATION_PLUGIN", "email-notification"),
options=list(inter),
description="Default {interval} day expiration notification".format(interval=i),
certificates=[]