Merge pull request #3294 from jtschladen/support-multiword-email-subject
Improve formatting for multiword email notification types
This commit is contained in:
commit
affd077afe
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue