Skip to content
Snippets Groups Projects
Commit 70cfa0cf authored by Morris Jette's avatar Morris Jette
Browse files

qsub - make sure batch submit with no arguments works

parent 16d65350
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,10 @@ if($interactive) {
if ($node_opts{task_cnt}) {
$node_opts{task_cnt} *= $node_opts{node_cnt};
}
if (!$node_opts{node_cnt} && !$node_opts{task_cnt} && !$node_opts{hostlist}) {
$node_opts{task_cnt} = 1;
}
} else {
if (!$script) {
pod2usage(2);
......@@ -222,9 +226,6 @@ if($interactive) {
}
}
if (!$node_opts{node_cnt} && !$node_opts{task_cnt} && !$node_opts{hostlist}) {
$node_opts{task_cnt} = 1;
}
$command .= " -N$node_opts{node_cnt}" if $node_opts{node_cnt};
$command .= " -n$node_opts{task_cnt}" if $node_opts{task_cnt};
$command .= " -w$node_opts{hostlist}" if $node_opts{hostlist};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment