From 5b3c52c6a2ffd7ed2ff5655a3b000d21145c9bc2 Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Tue, 26 Feb 2019 12:01:18 -0500 Subject: 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 --- dashboard/src/workflow/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dashboard/src/workflow') 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) -- cgit 1.2.3-korg