diff --git a/NEWS b/NEWS index f353f1ddecae11af5180b308e8d810a5f59a0971..b8b6c915d5f847d22fdb93b1c67ebcf0504bf8e4 100644 --- a/NEWS +++ b/NEWS @@ -30,6 +30,7 @@ documents those changes that are of interest to users and admins. ======================== -- Fix advanced reservation recovery logic when upgrading from version 2.4. -- BLUEGENE - fix for QOS/Association node limits. + -- Add missing "safe" flag from print of AccountStorageEnforce option. * Changes in SLURM 2.5.1 ======================== diff --git a/src/common/slurm_protocol_defs.c b/src/common/slurm_protocol_defs.c index a7ee6271eaf7654a941cd23b4528732ded25c42f..8619199c5574567dfaa7ae3e68970f215660e7fb 100644 --- a/src/common/slurm_protocol_defs.c +++ b/src/common/slurm_protocol_defs.c @@ -1779,12 +1779,17 @@ extern void accounting_enforce_string(uint16_t enforce, char *str, int str_len) strcat(str, ","); strcat(str, "qos"); //4 len } + if (enforce & ACCOUNTING_ENFORCE_SAFE) { + if (str[0]) + strcat(str, ","); + strcat(str, "safe"); //5 len + } if (enforce & ACCOUNTING_ENFORCE_WCKEYS) { if (str[0]) strcat(str, ","); strcat(str, "wckeys"); //7 len } - // total len 30 + // total len 35 if (str[0] == '\0') strcat(str, "none");