aboutsummaryrefslogtreecommitdiffstats
path: root/src/workflow/resource_bundle_workflow.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/workflow/resource_bundle_workflow.py')
-rw-r--r--src/workflow/resource_bundle_workflow.py2
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..404224e 100644
--- a/src/workflow/resource_bundle_workflow.py
+++ b/src/workflow/resource_bundle_workflow.py
@@ -266,7 +266,7 @@ class Define_Software(WorkflowStep):
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