Skip to content
Snippets Groups Projects
Commit fc8f7ffb authored by Danny Auble's avatar Danny Auble
Browse files

mod to make steps work inside an allocation

parent 5105e887
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
* any later version. * any later version.
* *
* In addition, as a special exception, the copyright holders give permission * In addition, as a special exception, the copyright holders give permission
* to link the code of portions of this program with the OpenSSL library under * to link the code of portions of this program with the OpenSSL library under
* certain conditions as described in each individual source file, and * certain conditions as described in each individual source file, and
* distribute linked combinations including the two. You must obey the GNU * distribute linked combinations including the two. You must obey the GNU
* General Public License in all respects for all of the code used other than * General Public License in all respects for all of the code used other than
...@@ -237,6 +237,8 @@ int srun(int ac, char **av) ...@@ -237,6 +237,8 @@ int srun(int ac, char **av)
} else if ((resp = existing_allocation())) { } else if ((resp = existing_allocation())) {
job_id = resp->job_id; job_id = resp->job_id;
if (opt.alloc_nodelist == NULL)
opt.alloc_nodelist = xstrdup(resp->node_list);
slurm_free_resource_allocation_response_msg(resp); slurm_free_resource_allocation_response_msg(resp);
if (opt.allocate) { if (opt.allocate) {
......
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