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

Correct formatting for sacctmgr list/show tres

parent d184ff46
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ sacctmgr_list_tres(int argc, char **argv) ...@@ -58,7 +58,7 @@ sacctmgr_list_tres(int argc, char **argv)
* we want to print, these are the data structure * we want to print, these are the data structure
* members of the type returned by slurmdbd * members of the type returned by slurmdbd
*/ */
slurm_addto_char_list(format_list, "NAME,ID,TYPE"); slurm_addto_char_list(format_list, "Type,Name%15,ID");
if (exit_code) { if (exit_code) {
FREE_NULL_LIST(format_list); FREE_NULL_LIST(format_list);
...@@ -88,14 +88,9 @@ sacctmgr_list_tres(int argc, char **argv) ...@@ -88,14 +88,9 @@ sacctmgr_list_tres(int argc, char **argv)
while ((field = list_next(itr2))) { while ((field = list_next(itr2))) {
switch (field->type) { switch (field->type) {
case PRINT_NAME: case PRINT_NAME:
if (tres->name) field->print_routine(field,
field->print_routine(field, tres->name,
tres->name, field_count);
field_count);
else
field->print_routine(field,
tres->type,
field_count);
break; break;
case PRINT_ID: case PRINT_ID:
field->print_routine(field, field->print_routine(field,
......
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