aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSean Smith <ssmith@iol.unh.edu>2020-07-27 14:56:58 -0400
committerSean Smith <ssmith@iol.unh.edu>2020-07-27 15:02:00 -0400
commit34c9d33a6235cf45175d0e4e1017c569e0f6095d (patch)
tree8db509bd687cfe50966b87611b344d6db1d764ae /src
parent4d7fc79eabf45014960117ba70fd29add07327c2 (diff)
Add deleted variable back
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: Ie757d5f9bdc992616760d9f30e49913292f93868
Diffstat (limited to 'src')
-rw-r--r--src/workflow/resource_bundle_workflow.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/workflow/resource_bundle_workflow.py b/src/workflow/resource_bundle_workflow.py
index 006f481..639e7a8 100644
--- a/src/workflow/resource_bundle_workflow.py
+++ b/src/workflow/resource_bundle_workflow.py
@@ -252,12 +252,15 @@ class Define_Software(WorkflowStep):
# TODO: fix headnode in form, currently doesn't return a selected one
# models['headnode_index'] = post_data.get("headnode", 1)
formset = self.create_hostformset(hosts, data=post_data)
+ has_headnode = False
if formset.is_valid():
for i, form in enumerate(formset):
host = hosts[i]
image = form.cleaned_data['image']
hostname = form.cleaned_data['host_name']
headnode = form.cleaned_data['headnode']
+ if headnode:
+ has_headnode = True
host.is_head_node = headnode
host.name = hostname
host.image = image