No headnode for marker bookings 93/70593/1
authorSean Smith <ssmith@iol.unh.edu>
Mon, 27 Jul 2020 19:15:25 +0000 (15:15 -0400)
committerSean Smith <ssmith@iol.unh.edu>
Mon, 27 Jul 2020 19:15:25 +0000 (15:15 -0400)
Signed-off-by: Sean Smith <ssmith@iol.unh.edu>
Change-Id: I96ea3d9f1fa045c754ba1c7aa0323339149d5173

src/workflow/resource_bundle_workflow.py

index 639e7a8..1a6de50 100644 (file)
@@ -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