diff options
-rw-r--r-- | src/workflow/resource_bundle_workflow.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |