From e90f13e0413594d95e50256b1206ffd64217f2da Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Mon, 16 Mar 2020 10:10:30 -0400 Subject: Quick Deploy Fixes. Change-Id: I46d410af62e4962d235346ba56472aaacb9d3ff2 Signed-off-by: Parker Berberian --- src/notifier/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/notifier') 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: -- cgit 1.2.3-korg