Skip to content

Commit 6d15feb

Browse files
Update internal/provider/resource_gitlab_group_project_file_template.go
Co-authored-by: Timo Furrer <[email protected]>
1 parent 29e45e7 commit 6d15feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/resource_gitlab_group_project_file_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func resourceGitLabGroupProjectFileTemplateCreateOrUpdate(ctx context.Context, d
8585
// Creating the resource means updating the existing group to link the project to the group.
8686
options := &gitlab.UpdateGroupOptions{}
8787
if d.HasChanges("file_template_project_id") {
88-
options.FileTemplateProjectID = gitlab.Int(d.Get("file_template_project_id").(int))
88+
options.FileTemplateProjectID = projectID
8989
}
9090

9191
_, _, err := client.Groups.UpdateGroup(groupID, options)

0 commit comments

Comments
 (0)