Skip to content

Commit 678ded7

Browse files
fix(data/repository): set name and full_name attributes as computed (#780)
This avoids propagating null values when the evaluation of the data source is deferred. Signed-off-by: Yann Soubeyrand <[email protected]>
1 parent 6ae8ab7 commit 678ded7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

github/data_source_github_repository.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ func dataSourceGithubRepository() *schema.Resource {
1717
"full_name": {
1818
Type: schema.TypeString,
1919
Optional: true,
20+
Computed: true,
2021
ConflictsWith: []string{"name"},
2122
},
2223
"name": {
2324
Type: schema.TypeString,
2425
Optional: true,
26+
Computed: true,
2527
ConflictsWith: []string{"full_name"},
2628
},
2729

0 commit comments

Comments
 (0)