diff --git a/.changeset/friendly-deers-invent.md b/.changeset/friendly-deers-invent.md new file mode 100644 index 0000000000..36a8886e0f --- /dev/null +++ b/.changeset/friendly-deers-invent.md @@ -0,0 +1,5 @@ +--- +"@scow/portal-server": patch +--- + +修复当一个 slurm 用户对同一个账户在不同分区中有不同配置时,列出所有账户时账户列表重复的问题 diff --git a/apps/portal-server/src/clusterops/slurm/job.ts b/apps/portal-server/src/clusterops/slurm/job.ts index 4021d4457b..34853a971e 100644 --- a/apps/portal-server/src/clusterops/slurm/job.ts +++ b/apps/portal-server/src/clusterops/slurm/job.ts @@ -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 };