Skip to content

Commit d2d1136

Browse files
author
Cristina Sánchez Sánchez
committed
typo
1 parent aa22dc6 commit d2d1136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/service/clouduserprojectassignment/resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (r *rs) Create(ctx context.Context, req resource.CreateRequest, resp *resou
7070
resp.Diagnostics.Append(resp.State.Set(ctx, newCloudUserProjectAssignmentModel)...)
7171
}
7272

73-
func fetchTeamUser(ctx context.Context, connV2 *admin.APIClient, projectID, userID, username string) (*admin.GroupUserResponse, error) {
73+
func fetchProjectUser(ctx context.Context, connV2 *admin.APIClient, projectID, userID, username string) (*admin.GroupUserResponse, error) {
7474
var userResp *admin.GroupUserResponse
7575
var httpResp *http.Response
7676
var err error
@@ -119,7 +119,7 @@ func (r *rs) Read(ctx context.Context, req resource.ReadRequest, resp *resource.
119119
userID := state.UserId.ValueString()
120120
username := state.Username.ValueString()
121121

122-
userResp, err = fetchTeamUser(ctx, connV2, projectID, userID, username)
122+
userResp, err = fetchProjectUser(ctx, connV2, projectID, userID, username)
123123
if err != nil {
124124
resp.Diagnostics.AddError(errorReadingUser, err.Error())
125125
return

0 commit comments

Comments
 (0)