Fixing a bug where notifications associated during certificate creation would not be respected.
This commit is contained in:
parent
6a24e88d9a
commit
06a69c09a0
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue