Skip to content

Commit

Permalink
PMM-12251 Typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Nov 8, 2023
1 parent ee56b7b commit 233d4bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/services/serviceaccounts/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (api *ServiceAccountsAPI) RegisterAPIEndpoints() {
// @PERCONA
// current service account (works only with service account token auth). If you use API key then key will be automatically migrated into service account.
api.RouterRegister.Group("/api/auth/serviceaccount", func(serviceAccountsRoute routing.RouteRegister) {
serviceAccountsRoute.Get("/", routing.Wrap(api.CurrentServiceAcount))
serviceAccountsRoute.Get("/", routing.Wrap(api.CurrentServiceAccount))
})
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/services/serviceaccounts/api/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (api *ServiceAccountsAPI) ListTokens(ctx *models.ReqContext) response.Respo
// @PERCONA
// swagger:route GET /auth/serviceaccount serviceaccounts retrieveServiceAccount
//
// # CurrentServiceAcount get current service account info
// # CurrentServiceAccount get current service account info
//
// Requires service account token authentication and that the authenticated user is at least reader.
//
Expand All @@ -125,7 +125,7 @@ func (api *ServiceAccountsAPI) ListTokens(ctx *models.ReqContext) response.Respo
// 401: unauthorisedError
// 403: forbiddenError
// 500: internalServerError
func (api *ServiceAccountsAPI) CurrentServiceAcount(ctx *models.ReqContext) response.Response {
func (api *ServiceAccountsAPI) CurrentServiceAccount(ctx *models.ReqContext) response.Response {
if !ctx.IsServiceAccount {
err := api.store.MigrateApiKeysToServiceAccounts(ctx.Req.Context(), ctx.OrgID)
if err != nil {
Expand Down

0 comments on commit 233d4bb

Please sign in to comment.