aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-01-02 14:38:04 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-01-02 14:38:04 +0000
commit7bf4f3794ebbf7b819d7db9f4d4522b7279169f5 (patch)
treedad9e850989d1b4588576036a7416724847a210d /src/workflow
parentf344654fd14e972b1b443194201dfd4c19288809 (diff)
parent21919476d791c24be54a447f9b7e32f74d3bd4b4 (diff)
Merge "Renders Pod Destriptor File earlier"
Diffstat (limited to 'src/workflow')
-rw-r--r--src/workflow/models.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/workflow/models.py b/src/workflow/models.py
index bed6f52..73a142e 100644
--- a/src/workflow/models.py
+++ b/src/workflow/models.py
@@ -528,6 +528,12 @@ class Repository():
booking.collaborators.add(collaborator)
try:
+ booking.pdf = ResourceManager().makePDF(booking.resource)
+ booking.save()
+ except Exception as e:
+ return "BOOK, failed to create Pod Desriptor File: " + str(e)
+
+ try:
JobFactory.makeCompleteJob(booking)
except Exception as e:
return "BOOK, serializing for api generated exception: " + str(e) + " CODE:0xFFFF"