X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=dashboard%2Fsrc%2Fworkflow%2Fmodels.py;h=cdfddef9908594c332472372b6674e1ddaf64789;hb=2f9786ec78b1fd6181405bb9938ab90767838e37;hp=7dae279620a8c3cf097d27943ac8be7a1dde10e5;hpb=16f1c65ac45a519a7ed710bca3068d6433fb2522;p=pharos-tools.git 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)