Making LEMUR_DEFAULT_SECURITY_EMAIL optional
This commit is contained in:
parent
500b212a25
commit
eb55d5465f
|
@ -220,7 +220,8 @@ def create(**kwargs):
|
|||
notifications += notification_service.create_default_expiration_notifications(notification_name, [cert.owner])
|
||||
|
||||
notification_name = 'DEFAULT_SECURITY'
|
||||
notifications += notification_service.create_default_expiration_notifications(notification_name, current_app.config.get('LEMUR_SECURITY_TEAM_EMAIL'))
|
||||
notifications += notification_service.create_default_expiration_notifications(notification_name,
|
||||
current_app.config.get('LEMUR_SECURITY_TEAM_EMAIL'))
|
||||
cert.notifications = notifications
|
||||
|
||||
database.update(cert)
|
||||
|
|
|
@ -178,6 +178,9 @@ def create_default_expiration_notifications(name, recipients):
|
|||
:param name:
|
||||
:return:
|
||||
"""
|
||||
if not recipients:
|
||||
return []
|
||||
|
||||
options = [
|
||||
{
|
||||
'name': 'unit',
|
||||
|
|
Loading…
Reference in New Issue