summaryrefslogtreecommitdiffstats
path: root/dashboard/src/workflow
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-01-02 16:33:37 -0500
committerParker Berberian <pberberian@iol.unh.edu>2019-01-02 16:33:37 -0500
commit4482bfa78a65e0711aff6d3e9937ca415dc9dbd0 (patch)
treee8854149d4cd8e7ec96b38ebaf9f4a1ee11b3433 /dashboard/src/workflow
parent23d72dfe0644e602ba50ccfa633fc1d01d45a319 (diff)
Quick fix for dictionary access
the line .labs needed to be changed to ['labs'] Change-Id: I6d2aa2eca0413186ddf482aba7f01e4e53c0265b Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'dashboard/src/workflow')
-rw-r--r--dashboard/src/workflow/resource_bundle_workflow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dashboard/src/workflow/resource_bundle_workflow.py b/dashboard/src/workflow/resource_bundle_workflow.py
index 11386f9..4858ebe 100644
--- a/dashboard/src/workflow/resource_bundle_workflow.py
+++ b/dashboard/src/workflow/resource_bundle_workflow.py
@@ -131,7 +131,7 @@ class Define_Hardware(WorkflowStep):
try:
self.form = HardwareDefinitionForm(request.POST)
if self.form.is_valid():
- if len(json.loads(self.form.cleaned_data['filter_field']).labs) != 1:
+ if len(json.loads(self.form.cleaned_data['filter_field'])['labs']) != 1:
self.metastep.set_invalid("Please select one lab")
else:
self.update_models(self.form.cleaned_data)