Skip to content

Commit

Permalink
fix: patch workspace has duplicate update statements (determined-ai#7697
Browse files Browse the repository at this point in the history
)
  • Loading branch information
eecsliu authored Aug 22, 2023
1 parent bf1b87b commit 2607fd1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions master/internal/api_workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,15 +424,6 @@ func (a *apiServer) PatchWorkspace(
insertColumns = append(insertColumns, "uid", "user_", "gid", "group_")
}

if req.Workspace.DefaultComputeResourcePool != nil {
updatedWorkspace.DefaultComputePool = *req.Workspace.DefaultComputeResourcePool
insertColumns = append(insertColumns, "default_compute_pool")
}
if req.Workspace.DefaultAuxResourcePool != nil {
updatedWorkspace.DefaultAuxPool = *req.Workspace.DefaultAuxResourcePool
insertColumns = append(insertColumns, "default_aux_pool")
}

if req.Workspace.DefaultComputeResourcePool != nil ||
req.Workspace.DefaultAuxResourcePool != nil {
if err = workspace.AuthZProvider.Get().
Expand Down

0 comments on commit 2607fd1

Please sign in to comment.