summaryrefslogtreecommitdiffstats
path: root/dashboard/src/workflow/models.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-03-01 18:21:51 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-03-01 18:21:51 +0000
commitcb967841ea9bbab7453567cec1a7195089b60a0e (patch)
tree8463bb7d1520f8f2eb551b84acc201aa749e924a /dashboard/src/workflow/models.py
parentdb0a6c8551100c4064259be5861f642b274dd0dc (diff)
parent5b3c52c6a2ffd7ed2ff5655a3b000d21145c9bc2 (diff)
Merge "Enhance PDF/IDF Support"
Diffstat (limited to 'dashboard/src/workflow/models.py')
-rw-r--r--dashboard/src/workflow/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dashboard/src/workflow/models.py b/dashboard/src/workflow/models.py
index 7dae279..cdfddef 100644
--- a/dashboard/src/workflow/models.py
+++ b/dashboard/src/workflow/models.py
@@ -21,6 +21,7 @@ from api.models import JobFactory
from dashboard.exceptions import ResourceAvailabilityException, ModelValidationException
from resource_inventory.models import Image, GenericInterface
from resource_inventory.resource_manager import ResourceManager
+from resource_inventory.pdf_templater import PDFTemplater
from notifier.manager import NotificationHandler
from booking.models import Booking
@@ -577,7 +578,7 @@ class Repository():
booking.collaborators.add(collaborator)
try:
- booking.pdf = ResourceManager().makePDF(booking.resource)
+ booking.pdf = PDFTemplater.makePDF(booking.resource)
booking.save()
except Exception as e:
return "BOOK, failed to create Pod Desriptor File: " + str(e)