X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=dashboard%2Fsrc%2Fnotifier%2Fdispatchers.py;h=1b66b37f23d5bec31272486a04c1c585bf9644ed;hb=d6e337fa62c32155941333fe8fedc28e4f663700;hp=64be2a59c8af95d7cb573a53d5806fc5aaae9c56;hpb=fb1ed51cfded9972793dbbb92e95b46e43b2a649;p=pharos-tools.git diff --git a/dashboard/src/notifier/dispatchers.py b/dashboard/src/notifier/dispatchers.py index 64be2a5..1b66b37 100644 --- a/dashboard/src/notifier/dispatchers.py +++ b/dashboard/src/notifier/dispatchers.py @@ -1,5 +1,5 @@ ############################################################################## -# Copyright (c) 2016 Max Breitenfeldt and others. +# Copyright (c) 2018 Sawyer Bergeron, Parker Berberian, and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 @@ -26,9 +26,8 @@ class DispatchHandler(): def email(instance): if instance.msg_sent != 'no dispatcher by given name exists: sending by email': instance.msg_sent = 'by email' - send_mail(instance.title,instance.content + - '\n\n This message pertains to the following resource: ' + - instance.resource.name,instance.sender,[instance.user.email_addr], fail_silently=False) + send_mail(instance.title,instance.content, + instance.sender,[instance.user.email_addr], fail_silently=False) def webnotification(instance): instance.msg_sent='by web notification'