Skip to content

Commit 73487d4

Browse files
committed
resource/gitlab_repository_file: Use context when destroying resource
1 parent d4fb471 commit 73487d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/resource_gitlab_repository_file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func resourceGitlabRepositoryFileDelete(ctx context.Context, d *schema.ResourceD
287287
}
288288

289289
deleteOptions.LastCommitID = gitlab.String(existingRepositoryFile.LastCommitID)
290-
resp, err := client.RepositoryFiles.DeleteFile(project, filePath, deleteOptions)
290+
resp, err := client.RepositoryFiles.DeleteFile(project, filePath, deleteOptions, gitlab.WithContext(ctx))
291291
if err != nil {
292292
if isRefreshError(err) {
293293
return resource.RetryableError(err)

0 commit comments

Comments
 (0)