diff --git a/lemur/certificates/schemas.py b/lemur/certificates/schemas.py index 9547a373..4753a7be 100644 --- a/lemur/certificates/schemas.py +++ b/lemur/certificates/schemas.py @@ -47,9 +47,8 @@ class CertificateCreationSchema(CertificateSchema): if not data['notifications']: notification_name = "DEFAULT_{0}".format(data['owner'].split('@')[0].upper()) data['notifications'] += notification_service.create_default_expiration_notifications(notification_name, [data['owner']]) - - notification_name = 'DEFAULT_SECURITY' - data['notifications'] += notification_service.create_default_expiration_notifications(notification_name, current_app.config.get('LEMUR_SECURITY_TEAM_EMAIL')) + notification_name = 'DEFAULT_SECURITY' + data['notifications'] += notification_service.create_default_expiration_notifications(notification_name, current_app.config.get('LEMUR_SECURITY_TEAM_EMAIL')) return data