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

Bluegene: Fix squeue BP_LIST output for pending jobs

The squeue command was printing bad I/O nodes or c-nodes information
for pending jobs. There was on midplane name, just the I/O or c-node
specification.
parent 34a15ce9
No related branches found
No related tags found
No related merge requests found
......@@ -620,10 +620,12 @@ int _print_job_nodes(job_info_t * job, int width, bool right, char* suffix)
char *nodes = xstrdup(job->nodes);
char *ionodes = NULL;
select_g_select_jobinfo_get(job->select_jobinfo,
SELECT_JOBDATA_IONODES,
&ionodes);
if(ionodes) {
if (nodes) {
select_g_select_jobinfo_get(job->select_jobinfo,
SELECT_JOBDATA_IONODES,
&ionodes);
}
if (ionodes) {
xstrfmtcat(nodes, "[%s]", ionodes);
xfree(ionodes);
_print_str(nodes, width, right, false);
......@@ -1314,10 +1316,12 @@ int _print_step_nodes(job_step_info_t * step, int width, bool right,
char *nodes = xstrdup(step->nodes);
char *ionodes = NULL;
select_g_select_jobinfo_get(step->select_jobinfo,
SELECT_JOBDATA_IONODES,
&ionodes);
if(ionodes) {
if (nodes) {
select_g_select_jobinfo_get(step->select_jobinfo,
SELECT_JOBDATA_IONODES,
&ionodes);
}
if (ionodes) {
xstrfmtcat(nodes, "[%s]", ionodes);
xfree(ionodes);
_print_str(nodes, width, right, false);
......
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