diff --git a/src/api/partition_info.c b/src/api/partition_info.c index e26040d99d7fd09004b769f0b7611567c6acda38..d5a50e9ec26cc9faf37b951de35e800e9b42c7a2 100644 --- a/src/api/partition_info.c +++ b/src/api/partition_info.c @@ -121,7 +121,11 @@ void slurm_print_partition_info ( FILE* out, partition_info_t * part_ptr, fprintf ( out, "MaxNodes=UNLIMITED "); else 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) fprintf ( out, " "); else