summaryrefslogtreecommitdiffstats
path: root/dashboard/src/workflow/sw_bundle_workflow.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-05-22 17:35:52 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-05-22 17:35:52 +0000
commit36ecf863b7ef6dd41d7b61b81c18e21c45cec15c (patch)
tree2fe59519c30bc31e36a5e4f9ee43f2d9ea4c0437 /dashboard/src/workflow/sw_bundle_workflow.py
parent406cb35a32e69351fc8f136f89460c35724d87eb (diff)
parent7aac5a5b704793263bdc003f7d20c087fb426835 (diff)
Merge "Make steps possible to hide/show"
Diffstat (limited to 'dashboard/src/workflow/sw_bundle_workflow.py')
-rw-r--r--dashboard/src/workflow/sw_bundle_workflow.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/dashboard/src/workflow/sw_bundle_workflow.py b/dashboard/src/workflow/sw_bundle_workflow.py
index a6a7464..329b716 100644
--- a/dashboard/src/workflow/sw_bundle_workflow.py
+++ b/dashboard/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)