diff --git a/lemur/notifications/service.py b/lemur/notifications/service.py index df34254d..07410658 100644 --- a/lemur/notifications/service.py +++ b/lemur/notifications/service.py @@ -36,13 +36,16 @@ def _get_message_data(cert): :param cert: :return: """ - cert_dict = cert.as_dict() + cert_dict = {} if cert.user: cert_dict['creator'] = cert.user.email - cert_dict['domains'] = [x .name for x in cert.domains] - cert_dict['superseded'] = list(set([x.name for x in _find_superseded(cert) if cert.name != x])) + cert_dict['not_after'] = cert.not_after + cert_dict['owner'] = cert.owner + cert_dict['name'] = cert.name + cert_dict['body'] = cert.body + return cert_dict diff --git a/lemur/plugins/lemur_email/templates/expiration.html b/lemur/plugins/lemur_email/templates/expiration.html index 53b98ad1..c24e355c 100644 --- a/lemur/plugins/lemur_email/templates/expiration.html +++ b/lemur/plugins/lemur_email/templates/expiration.html @@ -82,11 +82,6 @@ {% for message in messages %} - {{ message.name }}
- {% endif %} {% endfor %}