diff --git a/src/slaunch/opt.c b/src/slaunch/opt.c index 6b87a2868b2190bf19e7eb386f347a8d75ff346c..70cb93e36e89dc4c22c90abedc9b36fac146800d 100644 --- a/src/slaunch/opt.c +++ b/src/slaunch/opt.c @@ -1476,7 +1476,7 @@ static bool _opt_verify(void) if (!opt.num_nodes_set && opt.num_tasks_set && opt.num_tasks < opt.num_nodes) opt.num_nodes = opt.num_tasks; - if (opt.node_list + if (opt.nodelist && opt.num_nodes != hostlist_count(hl_unique)) { if (opt.num_nodes > hostlist_count(hl_unique)) { error("Asked for more nodes (%d) "