Fixing a bug where notifications associated during certificate creation would not be respected.

This commit is contained in:
kevgliss 2015-09-22 13:01:05 -07:00
parent 6a24e88d9a
commit 06a69c09a0

View File

@ -232,7 +232,7 @@ def create(**kwargs):
database.update_list(cert, 'notifications', Notification, kwargs.get('notifications'))
# create default notifications for this certificate if none are provided
notifications = []
notifications = cert.notifications
if not kwargs.get('notifications'):
notification_name = "DEFAULT_{0}".format(cert.owner.split('@')[0].upper())
notifications += notification_service.create_default_expiration_notifications(notification_name, [cert.owner])