Skip to content
Snippets Groups Projects
Commit c4a0a5ff authored by Moe Jette's avatar Moe Jette
Browse files

Combine DRAINED and DRAINING nodes on a single line as state DRAIN unles

the --long option is specified.
parent 775ce2dc
No related branches found
No related tags found
No related merge requests found
......@@ -508,6 +508,12 @@ _find_node_state_summary(List l, node_info_t *ninfo)
if ((params.summarize) ||
(ninfo->node_state == current->state))
break;
/* Since both DRAINED and DRAINING nodes are shown as
* state "DRAIN" by default, this will combine them */
if ((!params.long_output) &&
(strcmp(node_state_string_compact(ninfo->node_state),
node_state_string_compact(current->state)) == 0))
break;
}
list_iterator_destroy(i);
......
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