|
8 | 8 |
|
9 | 9 | def updateUser(username, groups):
|
10 | 10 | session = requests.Session()
|
11 |
| - newToken = slurm_auth.makejwt("root") |
| 11 | + newToken = slurm_auth.makejwt("root", True) |
12 | 12 | headers = {
|
13 | 13 | "Content-type": "application/json",
|
14 | 14 | "X-SLURM-USER-NAME": "root",
|
@@ -68,7 +68,7 @@ def updateUser(username, groups):
|
68 | 68 |
|
69 | 69 | def updateUsers(userGroups: list):
|
70 | 70 | session = requests.Session()
|
71 |
| - newToken = slurm_auth.makejwt("root") |
| 71 | + newToken = slurm_auth.makejwt("root", True) |
72 | 72 | headers = {
|
73 | 73 | "Content-type": "application/json",
|
74 | 74 | "X-SLURM-USER-NAME": "root",
|
@@ -131,7 +131,7 @@ def updateUsers(userGroups: list):
|
131 | 131 |
|
132 | 132 | def updateGroup(name, desc, org="opencsg"):
|
133 | 133 | session = requests.Session()
|
134 |
| - newToken = slurm_auth.makejwt("root") |
| 134 | + newToken = slurm_auth.makejwt("root", True) |
135 | 135 | headers = {
|
136 | 136 | "Content-type": "application/json",
|
137 | 137 | "X-SLURM-USER-NAME": "root",
|
@@ -162,7 +162,7 @@ def updateGroup(name, desc, org="opencsg"):
|
162 | 162 |
|
163 | 163 | def assignUsersToGroup(message):
|
164 | 164 | session = requests.Session()
|
165 |
| - newToken = slurm_auth.makejwt("root") |
| 165 | + newToken = slurm_auth.makejwt("root", True) |
166 | 166 | headers = {
|
167 | 167 | "Content-type": "application/json",
|
168 | 168 | "X-SLURM-USER-NAME": "root",
|
|
0 commit comments