Skip to content

Commit 6cbb830

Browse files
committed
datasource/gitlab_group_membership: Use context for querying group
1 parent aa9f0ec commit 6cbb830

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/data_source_gitlab_group_membership.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func dataSourceGitlabGroupMembershipRead(ctx context.Context, d *schema.Resource
118118
}
119119
} else if fullPathOk {
120120
// Get group by full path
121-
group, _, err = client.Groups.GetGroup(fullPathData.(string), nil)
121+
group, _, err = client.Groups.GetGroup(fullPathData.(string), nil, gitlab.WithContext(ctx))
122122
if err != nil {
123123
return diag.FromErr(err)
124124
}

0 commit comments

Comments
 (0)