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

Permit config file to have partition's AllowGroups=ALL to be accepted.

Report "AllowGroups=ALL" on output rather than either "AllowGroups="
or "AllowGroups=(null)" for greater clarity.
parent b9c897e0
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,11 @@ void slurm_print_partition_info ( FILE* out, partition_info_t * part_ptr, ...@@ -121,7 +121,11 @@ void slurm_print_partition_info ( FILE* out, partition_info_t * part_ptr,
fprintf ( out, "MaxNodes=UNLIMITED "); fprintf ( out, "MaxNodes=UNLIMITED ");
else else
fprintf ( out, "MaxNodes=%u ", part_ptr->max_nodes); fprintf ( out, "MaxNodes=%u ", part_ptr->max_nodes);
fprintf ( out, "AllowGroups=%s", part_ptr->allow_groups); if ((part_ptr->allow_groups == NULL) ||
(part_ptr->allow_groups[0] == '\0'))
fprintf ( out, "AllowGroups=ALL");
else
fprintf ( out, "AllowGroups=%s", part_ptr->allow_groups);
if (one_liner) if (one_liner)
fprintf ( out, " "); fprintf ( out, " ");
else else
......
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