diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-01-02 14:38:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-01-02 14:38:04 +0000 |
commit | 0633b9f6a1b4e430888360edc35e403b1b6d341c (patch) | |
tree | 0eb33d006979debda80927bac7c9cc46041ff7d9 /dashboard/src/workflow | |
parent | 1a3b73723f8ed903e428b096fe5458980e813592 (diff) | |
parent | 28a35133ff325aab59204df7372d7cc78ca5e64c (diff) |
Merge "Renders Pod Destriptor File earlier"
Diffstat (limited to 'dashboard/src/workflow')
-rw-r--r-- | dashboard/src/workflow/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dashboard/src/workflow/models.py b/dashboard/src/workflow/models.py index bed6f52..73a142e 100644 --- a/dashboard/src/workflow/models.py +++ b/dashboard/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" |