Skip to content

Commit

Permalink
fix(portal-server): 修复当一个slurm用户对同一个账户在不同分区中有不同配置时,列出所有账户时账户列表重复的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ddadaal committed Mar 28, 2023
1 parent 9aabf3a commit 613c26e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/friendly-deers-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/portal-server": patch
---

修复当一个 slurm 用户对同一个账户在不同分区中有不同配置时,列出所有账户时账户列表重复的问题
2 changes: 1 addition & 1 deletion apps/portal-server/src/clusterops/slurm/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const slurmJobOps = (cluster: string): JobOps => {

const accounts = stdout.split("\n").slice(2).map((x) => x.trim());

return accounts;
return [...new Set(accounts)];
});

return { accounts };
Expand Down

0 comments on commit 613c26e

Please sign in to comment.