Skip to content

Commit 569e008

Browse files
committed
resource/gitlab_project: Mark topics attribute as Computed
This avoids a subsequent non-empty plan to a minial `gitlab_project` configuration: ``` Note: Objects have changed outside of Terraform Terraform detected the following changes made outside of Terraform since the last "terraform apply": # gitlab_project.test has changed ~ resource "gitlab_project" "test" { id = "481" name = "Test 3" tags = [] + topics = [] # (57 unchanged attributes hidden) # (2 unchanged blocks hidden) } Unless you have made equivalent changes to your configuration, or ignored the relevant attributes using ignore_changes, the following plan may include actions to undo or respond to these changes. ``` This behavior has not yet been released. See #917
1 parent dc70175 commit 569e008

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/provider/resource_gitlab_project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ var resourceGitLabProjectSchema = map[string]*schema.Schema{
565565
Set: schema.HashString,
566566
Elem: &schema.Schema{Type: schema.TypeString},
567567
Optional: true,
568+
Computed: true,
568569
},
569570
"wiki_access_level": {
570571
Description: fmt.Sprintf("Set the wiki access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),

0 commit comments

Comments
 (0)