From 0d90af7bcea705c78df92336b31836ef67cd5d10 Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Mon, 27 Jul 2020 15:15:25 -0400 Subject: No headnode for marker bookings Signed-off-by: Sean Smith Change-Id: I96ea3d9f1fa045c754ba1c7aa0323339149d5173 --- src/workflow/resource_bundle_workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/workflow') diff --git a/src/workflow/resource_bundle_workflow.py b/src/workflow/resource_bundle_workflow.py index 639e7a8..1a6de50 100644 --- a/src/workflow/resource_bundle_workflow.py +++ b/src/workflow/resource_bundle_workflow.py @@ -259,7 +259,7 @@ class Define_Software(WorkflowStep): image = form.cleaned_data['image'] hostname = form.cleaned_data['host_name'] headnode = form.cleaned_data['headnode'] - if headnode: + if headnode or not hosts: has_headnode = True host.is_head_node = headnode host.name = hostname -- cgit 1.2.3-korg