From 3af465b6c9048086afbf3110c56b0b95f90a29d2 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@llnl.gov> Date: Wed, 23 Jun 2010 19:30:06 +0000 Subject: [PATCH] fix for if given a wckey add it, if not don't worry about it --- src/sacctmgr/user_functions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sacctmgr/user_functions.c b/src/sacctmgr/user_functions.c index 8294704f2a6..8bed497120a 100644 --- a/src/sacctmgr/user_functions.c +++ b/src/sacctmgr/user_functions.c @@ -1232,7 +1232,8 @@ extern int sacctmgr_add_user(int argc, char *argv[]) continue; } - assoc = xmalloc(sizeof(slurmdb_association_rec_t)); + assoc = xmalloc( + sizeof(slurmdb_association_rec_t)); slurmdb_init_association_rec(assoc); assoc->user = xstrdup(name); assoc->acct = xstrdup(account); @@ -1336,7 +1337,7 @@ no_default: printf(" Adding User(s)\n%s", user_str); printf(" Settings =\n"); printf(" Default Account = %s\n", default_acct); - if(track_wckey) + if(default_wckey) printf(" Default WCKey = %s\n", default_wckey); if(admin_level != SLURMDB_ADMIN_NOTSET) -- GitLab