diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2020-03-17 12:52:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2020-03-17 12:52:21 +0000 |
commit | 287a9e199abf29c4872390e4ff15db5f87382e20 (patch) | |
tree | 01948e75db2eb3c398de4ae9d266fc6c60da59e9 /src/notifier/manager.py | |
parent | c8998d426cbf12afb2d2e68059e0969388b50c95 (diff) | |
parent | e90f13e0413594d95e50256b1206ffd64217f2da (diff) |
Merge "Quick Deploy Fixes." into resource
Diffstat (limited to 'src/notifier/manager.py')
-rw-r--r-- | src/notifier/manager.py | 4 |
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: |