Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
bug(serviceaccount): the keyname is fully qualified
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbes committed Aug 9, 2024
1 parent 02e1610 commit e1ff903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/service/core/api/gcp/gcp_service_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (a *serviceAccountAPI) recreateServiceAccountKey(ctx context.Context, accou
}

for _, key := range keys.Keys {
_, err := iamService.Projects.ServiceAccounts.Keys.Delete("projects/-/serviceAccounts/" + accountID + "/keys/" + key.Name).Do()
_, err := iamService.Projects.ServiceAccounts.Keys.Delete(key.Name).Do()
if err != nil {
return nil, errs.E(errs.IO, op, err)
}
Expand Down

0 comments on commit e1ff903

Please sign in to comment.