From a6de767f02153b46d964d551f10bc9561aa28d0c Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Thu, 23 Jul 2020 17:16:58 -0400 Subject: Make static OPNFV references dynamic Change-Id: I3830a30a927834b642052643d94c39a9faec4d54 Signed-off-by: Sean Smith --- src/notifier/manager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/notifier') 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: -- cgit 1.2.3-korg