Fix cloned notifications

This commit is contained in:
Curtis Castrapel 2018-02-27 10:57:43 -08:00
parent 59ce586ea4
commit 77a1600c13
1 changed files with 2 additions and 3 deletions

View File

@ -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