aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow/resource_bundle_workflow.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-07-31 16:43:44 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-07-31 16:43:44 +0000
commit924e659f949b9174572223b83cf3fbb15f248b52 (patch)
tree5803090199385088b54c3bc34cda7b296b63aeb9 /src/workflow/resource_bundle_workflow.py
parentba7a794185bf35930ed8bd554b9ccff0f5c35bda (diff)
parent5abef530d630b317e1ef21901226574b8900a84c (diff)
Merge "Allow marker bookings"
Diffstat (limited to 'src/workflow/resource_bundle_workflow.py')
-rw-r--r--src/workflow/resource_bundle_workflow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/workflow/resource_bundle_workflow.py b/src/workflow/resource_bundle_workflow.py
index 1a6de50..404224e 100644
--- a/src/workflow/resource_bundle_workflow.py
+++ b/src/workflow/resource_bundle_workflow.py
@@ -259,14 +259,14 @@ class Define_Software(WorkflowStep):
image = form.cleaned_data['image']
hostname = form.cleaned_data['host_name']
headnode = form.cleaned_data['headnode']
- if headnode or not hosts:
+ if headnode:
has_headnode = True
host.is_head_node = headnode
host.name = hostname
host.image = image
host.save()
- if not has_headnode:
+ if not has_headnode and len(hosts) > 0:
self.set_invalid("No headnode. Please set a headnode.")
return