Skip to content

Commit

Permalink
fix(conn): wrong password secret used when creating tenant connection (
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI authored Apr 25, 2024
1 parent 0a06c4b commit 97edaf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dashboard/handler/conn_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func CreateOBTenantConnTerminal(c *gin.Context) (*response.OBConnection, error)
}

// Select unit information from the oceanbase cluster
db, err := getSysClient(c, obcluster, oceanbaseconst.RootUser, oceanbaseconst.SysTenant, obtenant.Spec.Credentials.Root)
db, err := getSysClient(c, obcluster, oceanbaseconst.RootUser, oceanbaseconst.SysTenant, obcluster.Spec.UserSecrets.Root)
if err != nil {
return nil, httpErr.NewInternal(err.Error())
}
Expand Down

0 comments on commit 97edaf6

Please sign in to comment.