Skip to content
Snippets Groups Projects
Commit 3af465b6 authored by Danny Auble's avatar Danny Auble
Browse files

fix for if given a wckey add it, if not don't worry about it

parent c348cc81
No related branches found
No related tags found
No related merge requests found
...@@ -1232,7 +1232,8 @@ extern int sacctmgr_add_user(int argc, char *argv[]) ...@@ -1232,7 +1232,8 @@ extern int sacctmgr_add_user(int argc, char *argv[])
continue; continue;
} }
assoc = xmalloc(sizeof(slurmdb_association_rec_t)); assoc = xmalloc(
sizeof(slurmdb_association_rec_t));
slurmdb_init_association_rec(assoc); slurmdb_init_association_rec(assoc);
assoc->user = xstrdup(name); assoc->user = xstrdup(name);
assoc->acct = xstrdup(account); assoc->acct = xstrdup(account);
...@@ -1336,7 +1337,7 @@ no_default: ...@@ -1336,7 +1337,7 @@ no_default:
printf(" Adding User(s)\n%s", user_str); printf(" Adding User(s)\n%s", user_str);
printf(" Settings =\n"); printf(" Settings =\n");
printf(" Default Account = %s\n", default_acct); printf(" Default Account = %s\n", default_acct);
if(track_wckey) if(default_wckey)
printf(" Default WCKey = %s\n", default_wckey); printf(" Default WCKey = %s\n", default_wckey);
if(admin_level != SLURMDB_ADMIN_NOTSET) if(admin_level != SLURMDB_ADMIN_NOTSET)
......
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