address comment
This commit is contained in:
parent
77a1600c13
commit
18c64fafe4
|
@ -45,10 +45,14 @@ class CertificateCreationSchema(CertificateSchema):
|
||||||
@post_load
|
@post_load
|
||||||
def default_notification(self, data):
|
def default_notification(self, data):
|
||||||
if not data['notifications']:
|
if not data['notifications']:
|
||||||
notification_name = "DEFAULT_{0}".format(data['owner'].split('@')[0].upper())
|
data['notifications'] += notification_service.create_default_expiration_notifications(
|
||||||
data['notifications'] += notification_service.create_default_expiration_notifications(notification_name, [data['owner']])
|
"DEFAULT_{0}".format(data['owner'].split('@')[0].upper()),
|
||||||
notification_name = 'DEFAULT_SECURITY'
|
[data['owner']],
|
||||||
data['notifications'] += notification_service.create_default_expiration_notifications(notification_name, current_app.config.get('LEMUR_SECURITY_TEAM_EMAIL'))
|
)
|
||||||
|
data['notifications'] += notification_service.create_default_expiration_notifications(
|
||||||
|
'DEFAULT_SECURITY',
|
||||||
|
current_app.config.get('LEMUR_SECURITY_TEAM_EMAIL')
|
||||||
|
)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue