diff --git a/NEWS b/NEWS index 3c6df7d923ce58cb45af639049b9701440ae8816..201d7376544bf39cd98a7b34e1f94b4f3b89e1f7 100644 --- a/NEWS +++ b/NEWS @@ -39,6 +39,8 @@ documents those changes that are of interest to users and administrators. -- Prevent multiple responses to REQUEST_UPDATE_JOB_STEP message. -- Prevent possible deadlock in acct_gather_filesystem/lustre on error. -- Make it so --mail-type=NONE didn't throw an invalid error. + -- If no default account is given for a user when creating (only a list of + accounts) no default account is printed, previously NULL was printed. * Changes in Slurm 15.08.11 =========================== diff --git a/src/sacctmgr/user_functions.c b/src/sacctmgr/user_functions.c index de6663a5505d65f60c3c8107bc32e3cdf4c3f0fd..d579519102c8a82ea5c21eab68310cd02f2014c9 100644 --- a/src/sacctmgr/user_functions.c +++ b/src/sacctmgr/user_functions.c @@ -1204,8 +1204,11 @@ no_default: if (user_str) { printf(" Adding User(s)\n%s", user_str); - printf(" Settings =\n"); - printf(" Default Account = %s\n", default_acct); + if (default_acct || default_wckey || + (admin_level != SLURMDB_ADMIN_NOTSET)) + printf(" Settings =\n"); + if (default_acct) + printf(" Default Account = %s\n", default_acct); if (default_wckey) printf(" Default WCKey = %s\n", default_wckey);