diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2020-07-27 18:52:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2020-07-27 18:52:03 +0000 |
commit | 4d7fc79eabf45014960117ba70fd29add07327c2 (patch) | |
tree | 88e8964c0477c5d92bdde1964e58a0e7f096e8e1 /src/notifier/manager.py | |
parent | dc115112cd0de9764ac6d8b4fb2dd1c0fc37bf59 (diff) | |
parent | a6de767f02153b46d964d551f10bc9561aa28d0c (diff) |
Merge "Make static OPNFV references dynamic"
Diffstat (limited to 'src/notifier/manager.py')
-rw-r--r-- | src/notifier/manager.py | 5 |
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: |