Merge branch 'master' into expiration-summary-email

This commit is contained in:
Jasmine Schladen 2020-12-08 11:48:15 -08:00 committed by GitHub
commit 79c6b3fc00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,8 @@ class EmailNotificationPlugin(ExpirationNotificationPlugin):
if not targets: if not targets:
return return
subject = "Lemur: {0} Notification".format(notification_type.capitalize()) readable_notification_type = ' '.join(map(lambda x: x.capitalize(), notification_type.split('_')))
subject = f"Lemur: {readable_notification_type} Notification"
body = render_html(notification_type, options, message) body = render_html(notification_type, options, message)