From 06a69c09a0e752f8fcf71b12e57ae5118d858693 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Tue, 22 Sep 2015 13:01:05 -0700 Subject: [PATCH] Fixing a bug where notifications associated during certificate creation would not be respected. --- lemur/certificates/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/certificates/service.py b/lemur/certificates/service.py index 081ea733..9e5db6ad 100644 --- a/lemur/certificates/service.py +++ b/lemur/certificates/service.py @@ -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])