aboutsummaryrefslogtreecommitdiffstats
path: root/src/notifier/manager.py
diff options
context:
space:
mode:
authorSean Smith <ssmith@iol.unh.edu>2020-07-23 17:16:58 -0400
committerSean Smith <ssmith@iol.unh.edu>2020-07-27 14:43:24 -0400
commita6de767f02153b46d964d551f10bc9561aa28d0c (patch)
tree40342ea9d42e510673a2dd35455d7e7f9411b478 /src/notifier/manager.py
parent682f7ebb6d0be5ddd8e4c699e1f87fc20a3fe1e3 (diff)
Make static OPNFV references dynamic
Change-Id: I3830a30a927834b642052643d94c39a9faec4d54 Signed-off-by: Sean Smith <ssmith@iol.unh.edu>
Diffstat (limited to 'src/notifier/manager.py')
-rw-r--r--src/notifier/manager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/notifier/manager.py b/src/notifier/manager.py
index 6d75a79..8ea8021 100644
--- a/src/notifier/manager.py
+++ b/src/notifier/manager.py
@@ -1,5 +1,6 @@
##############################################################################
# Copyright (c) 2018 Parker Berberian, Sawyer Bergeron and others.
+# Copyright (c) 2020 Sawyer Bergeron, Sean Smith, and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
@@ -110,7 +111,7 @@ class NotificationHandler(object):
@classmethod
def email_booking_over(cls, booking):
template_name = "notifier/email_ended.txt"
- hostnames = [host.name for host in booking.resource.getResources()]
+ hostnames = [host.name for host in booking.resource.get_resources()]
users = list(booking.collaborators.all())
users.append(booking.owner)
for user in users:
@@ -134,7 +135,7 @@ class NotificationHandler(object):
@classmethod
def email_booking_expiring(cls, booking):
template_name = "notifier/email_expiring.txt"
- hostnames = [host.name for host in booking.resource.getResources()]
+ hostnames = [host.name for host in booking.resource.get_resources()]
users = list(booking.collaborators.all())
users.append(booking.owner)
for user in users: