aboutsummaryrefslogtreecommitdiffstats
path: root/src/notifier/manager.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2020-04-14 18:15:55 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-04-14 18:15:55 +0000
commit6bf37e9864787e0398a1d2e1cdd10b40a8ebc6e6 (patch)
tree18396967cc32110ae5455827e612e2846e55392c /src/notifier/manager.py
parentd5b4f4c77534824430fd8e2d3f15e5f7ed6303f5 (diff)
parent557659acfd97ddaacdb89192ff6a575691b39093 (diff)
Merge "Add user + user list to API"
Diffstat (limited to 'src/notifier/manager.py')
-rw-r--r--src/notifier/manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notifier/manager.py b/src/notifier/manager.py
index a5b7b9a..6d75a79 100644
--- a/src/notifier/manager.py
+++ b/src/notifier/manager.py
@@ -110,7 +110,7 @@ class NotificationHandler(object):
@classmethod
def email_booking_over(cls, booking):
template_name = "notifier/email_ended.txt"
- hostnames = [host.template.resource.name for host in booking.resource.hosts.all()]
+ hostnames = [host.name for host in booking.resource.getResources()]
users = list(booking.collaborators.all())
users.append(booking.owner)
for user in users:
@@ -134,7 +134,7 @@ class NotificationHandler(object):
@classmethod
def email_booking_expiring(cls, booking):
template_name = "notifier/email_expiring.txt"
- hostnames = [host.template.resource.name for host in booking.resource.hosts.all()]
+ hostnames = [host.name for host in booking.resource.getResources()]
users = list(booking.collaborators.all())
users.append(booking.owner)
for user in users: