Skip to content

Commit adc5c69

Browse files
authored
Remove ForceNew from oauth_token attribute of r/tfe_oauth_client (#1825)
* Remove ForceNew from oauth_token attribute of r/tfe_oauth_client * Update CHANGELOG * chore: trigger CI * chore: trigger CI
1 parent 69b0be2 commit adc5c69

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Unreleased
22

3+
ENHANCEMENTS:
4+
* `r/tfe_oauth_client`: The `oauth_token` attribute no longer triggers resource replacement unless combined with other replacement-triggering attributes. Use `terraform apply -replace` to force replacement. By @lilincmu [#1825](https://github.com/hashicorp/terraform-provider-tfe/pull/1825)
5+
36
## v0.68.3
47

58
BUG FIXES:

internal/provider/resource_tfe_oauth_client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ func resourceTFEOAuthClient() *schema.Resource {
6363
Type: schema.TypeString,
6464
Optional: true,
6565
Sensitive: true,
66-
ForceNew: true,
6766
},
6867

6968
"private_key": {

internal/provider/resource_tfe_oauth_client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ func TestAccTFEOAuthClient_updateOAuthTokenID(t *testing.T) {
172172
testAccCheckTFEOAuthClientExists("tfe_oauth_client.foobar", oc),
173173
resource.TestCheckResourceAttrSet("tfe_oauth_client.foobar", "oauth_token_id"),
174174
func(s *terraform.State) error {
175-
if initialOAuthTokenID == oc.OAuthTokens[0].ID {
176-
return fmt.Errorf("oauth_token_id did not change")
175+
if initialOAuthTokenID != oc.OAuthTokens[0].ID {
176+
return fmt.Errorf("oauth_token_id changed")
177177
}
178178
return nil
179179
},

0 commit comments

Comments
 (0)