aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow/resource_bundle_workflow.py
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
commitb729dd4e21e90fe6f83b31cabdcc9f74757c70bd (patch)
tree9c20e6d1cae2c1ead9ca41d514c98a0530f9042d /src/workflow/resource_bundle_workflow.py
parentdd444cb358df09040650aea85eca3f4e09cb353e (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 'src/workflow/resource_bundle_workflow.py')
-rw-r--r--src/workflow/resource_bundle_workflow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/workflow/resource_bundle_workflow.py b/src/workflow/resource_bundle_workflow.py
index 11386f9..4858ebe 100644
--- a/src/workflow/resource_bundle_workflow.py
+++ b/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)