aboutsummaryrefslogtreecommitdiffstats
path: root/src/notifier
diff options
context:
space:
mode:
Diffstat (limited to 'src/notifier')
-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:
f='#n184'>184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226