aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-07-27 17:03:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-07-27 17:03:45 +0000
commitdc115112cd0de9764ac6d8b4fb2dd1c0fc37bf59 (patch)
tree167dbee9f95b510e56aec5f13bf09cc49406dcea /src/workflow
parentb743f3ad85acca17c473d123f715091165969087 (diff)
parent4cc9426d72fe9baa8a4a7f56c6d43493bd011f02 (diff)
Merge "Fix Flake8 Violations"
Diffstat (limited to 'src/workflow')
-rw-r--r--src/workflow/resource_bundle_workflow.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/workflow/resource_bundle_workflow.py b/src/workflow/resource_bundle_workflow.py
index 639e7a8..006f481 100644
--- a/src/workflow/resource_bundle_workflow.py
+++ b/src/workflow/resource_bundle_workflow.py
@@ -252,15 +252,12 @@ 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