Skip to content

Commit

Permalink
fix(etag): fix etag being noisy when no actual state has been changed
Browse files Browse the repository at this point in the history
  • Loading branch information
aamkye committed Jun 21, 2024
1 parent 2a17feb commit 0566c08
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 1 deletion.
4 changes: 4 additions & 0 deletions github/resource_github_membership.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ func resourceGithubMembership() *schema.Resource {
"etag": {
Type: schema.TypeString,
Computed: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return true
},
DiffSuppressOnRefresh: true,
},
"downgrade_on_destroy": {
Type: schema.TypeBool,
Expand Down
4 changes: 4 additions & 0 deletions github/resource_github_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@ func resourceGithubRepository() *schema.Resource {
"etag": {
Type: schema.TypeString,
Computed: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return true
},
DiffSuppressOnRefresh: true,
},
"primary_language": {
Type: schema.TypeString,
Expand Down
4 changes: 4 additions & 0 deletions github/resource_github_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ func resourceGithubTeam() *schema.Resource {
"etag": {
Type: schema.TypeString,
Computed: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return true
},
DiffSuppressOnRefresh: true,
},
"node_id": {
Type: schema.TypeString,
Expand Down
4 changes: 4 additions & 0 deletions github/resource_github_team_membership.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ func resourceGithubTeamMembership() *schema.Resource {
"etag": {
Type: schema.TypeString,
Computed: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return true
},
DiffSuppressOnRefresh: true,
},
},
}
Expand Down
4 changes: 4 additions & 0 deletions github/resource_github_team_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ func resourceGithubTeamRepository() *schema.Resource {
"etag": {
Type: schema.TypeString,
Computed: true,
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return true
},
DiffSuppressOnRefresh: true,
},
},
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0566c08

Please sign in to comment.