From ec2f0d1340d0548aedc5773788e241d1558fa1ed Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Thu, 6 Jun 2019 12:45:32 -0400 Subject: redirect to booking detail on creation Change-Id: I4e27f6a4a64314639b9ac83750b5b6add069399b Signed-off-by: Sawyer Bergeron --- src/workflow/models.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/workflow/models.py') diff --git a/src/workflow/models.py b/src/workflow/models.py index 43a9bf2..6c6bd9a 100644 --- a/src/workflow/models.py +++ b/src/workflow/models.py @@ -490,6 +490,9 @@ class Repository(): pass JobFactory.makeSnapshotTask(image, booking, host) + self.el[self.RESULT] = image + self.el[self.HAS_RESULT] = True + def make_generic_resource_bundle(self): owner = self.el[self.SESSION_USER] if self.GRESOURCE_BUNDLE_MODELS in self.el: @@ -556,6 +559,7 @@ class Repository(): return "GRB no models given. CODE:0x0001" self.el[self.RESULT] = bundle + self.el[self.HAS_RESULT] = True return False def make_software_config_bundle(self): @@ -667,6 +671,9 @@ class Repository(): except Exception as e: return "BOOK, saving booking generated exception: " + str(e) + " CODE:0x0016" + self.el[self.RESULT] = booking + self.el[self.HAS_RESULT] = True + def make_opnfv_config(self): opnfv_models = self.el[self.OPNFV_MODELS] config_bundle = self.el[self.SELECTED_CONFIG_BUNDLE] @@ -713,10 +720,13 @@ class Repository(): ) self.el[self.RESULT] = opnfv_config + self.el[self.HAS_RESULT] = True def __init__(self): self.el = {} self.el[self.CONFIRMATION] = {} self.el["active_step"] = 0 + self.el[self.HAS_RESULT] = False + self.el[self.RESULT] = None self.get_history = {} self.put_history = {} -- cgit 1.2.3-korg