summaryrefslogtreecommitdiffstats
path: root/dashboard/src/workflow
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-02-26 12:01:18 -0500
committerParker Berberian <pberberian@iol.unh.edu>2019-03-01 11:06:29 -0500
commit5b3c52c6a2ffd7ed2ff5655a3b000d21145c9bc2 (patch)
tree3e673e7c77071f8284f009b10c193bce3d671220 /dashboard/src/workflow
parent06cc79f770b40e9d0d7a5e9872f176c7f93971e7 (diff)
Enhance PDF/IDF Support
Improves PDF template and code organization and adds an IDF template. To complete these templates, the lab must be able to report L3 network info and ipmi info at the least. A change to the API to allow for this has to be made. Change-Id: I4b9d2e73eb3940300f7e95fa2f9f4ddd0d606c60 Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'dashboard/src/workflow')
-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)