diff options
author | Parker Berberian <pberberian@iol.unh.edu> | 2019-05-22 17:35:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-05-22 17:35:52 +0000 |
commit | 2e353a7c9fdc1439bb5b0999a6bb67e27ed2d46b (patch) | |
tree | 88ee597da2644fbdea6187930622bde4db168eb5 /src/workflow/sw_bundle_workflow.py | |
parent | 9fc3d1a8be7f01b69e45181e8e38cc1063b56c66 (diff) | |
parent | a21c6044461097a8551efd7bbcae2cd4d466fb07 (diff) |
Merge "Make steps possible to hide/show"
Diffstat (limited to 'src/workflow/sw_bundle_workflow.py')
-rw-r--r-- | src/workflow/sw_bundle_workflow.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/workflow/sw_bundle_workflow.py b/src/workflow/sw_bundle_workflow.py index a6a7464..329b716 100644 --- a/src/workflow/sw_bundle_workflow.py +++ b/src/workflow/sw_bundle_workflow.py @@ -113,7 +113,7 @@ class Define_Software(WorkflowStep): context['headnode'] = self.repo_get(self.repo.CONFIG_MODELS, {}).get("headnode_index", 1) else: context["error"] = "Please select a resource first" - self.metastep.set_invalid("Step requires information that is not yet provided by previous step") + self.set_invalid("Step requires information that is not yet provided by previous step") return context @@ -152,7 +152,7 @@ class Define_Software(WorkflowStep): }) if not has_headnode: - self.metastep.set_invalid('Must have one "Headnode" per POD') + self.set_invalid('Must have one "Headnode" per POD') return self.render(request) self.repo_put(self.repo.CONFIG_MODELS, models) @@ -160,9 +160,9 @@ class Define_Software(WorkflowStep): confirm['configuration'] = {} confirm['configuration']['hosts'] = confirm_hosts self.repo_put(self.repo.CONFIRMATION, confirm) - self.metastep.set_valid("Completed") + self.set_valid("Completed") else: - self.metastep.set_invalid("Please complete all fields") + self.set_invalid("Please complete all fields") return self.render(request) @@ -201,9 +201,9 @@ class Config_Software(WorkflowStep): confirm['configuration']['name'] = form.cleaned_data['name'] confirm['configuration']['description'] = form.cleaned_data['description'] - self.metastep.set_valid("Complete") + self.set_valid("Complete") else: - self.metastep.set_invalid("Please correct the errors shown below") + self.set_invalid("Please correct the errors shown below") self.repo_put(self.repo.CONFIG_MODELS, models) self.repo_put(self.repo.CONFIRMATION, confirm) |