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

fixed bug where default qos wasn't being set up correctly when adding an object account/user

parent 8f262958
No related branches found
No related tags found
No related merge requests found
...@@ -536,6 +536,7 @@ extern int sacctmgr_add_account(int argc, char *argv[]) ...@@ -536,6 +536,7 @@ extern int sacctmgr_add_account(int argc, char *argv[])
slurmdb_init_association_rec(assoc); slurmdb_init_association_rec(assoc);
assoc->acct = xstrdup(name); assoc->acct = xstrdup(name);
assoc->cluster = xstrdup(cluster); assoc->cluster = xstrdup(cluster);
assoc->def_qos_id = start_assoc->def_qos_id;
assoc->parent_acct = xstrdup(start_assoc->parent_acct); assoc->parent_acct = xstrdup(start_assoc->parent_acct);
assoc->shares_raw = start_assoc->shares_raw; assoc->shares_raw = start_assoc->shares_raw;
......
...@@ -814,6 +814,9 @@ extern int sacctmgr_add_user(int argc, char *argv[]) ...@@ -814,6 +814,9 @@ extern int sacctmgr_add_user(int argc, char *argv[])
assoc->cluster = xstrdup(cluster); assoc->cluster = xstrdup(cluster);
assoc->partition = xstrdup(partition); assoc->partition = xstrdup(partition);
assoc->def_qos_id =
start_assoc.def_qos_id;
assoc->shares_raw = assoc->shares_raw =
start_assoc.shares_raw; start_assoc.shares_raw;
...@@ -873,6 +876,8 @@ extern int sacctmgr_add_user(int argc, char *argv[]) ...@@ -873,6 +876,8 @@ extern int sacctmgr_add_user(int argc, char *argv[])
assoc->acct = xstrdup(account); assoc->acct = xstrdup(account);
assoc->cluster = xstrdup(cluster); assoc->cluster = xstrdup(cluster);
assoc->def_qos_id = start_assoc.def_qos_id;
assoc->shares_raw = start_assoc.shares_raw; assoc->shares_raw = start_assoc.shares_raw;
assoc->grp_cpu_mins = assoc->grp_cpu_mins =
......
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