Skip to content

Commit

Permalink
Merge pull request #3358 from GreenStage/egomes/fix-access-policy-for…
Browse files Browse the repository at this point in the history
…ce-new

Fix access policies forcing new when no account id is set
  • Loading branch information
jacobbednarz authored Aug 27, 2024
2 parents b33577b + 7387c08 commit 4708b62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/3358.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/cloudflare_access_policy: Fix forcing new access policies when account id is not set through import
```
2 changes: 0 additions & 2 deletions internal/sdkv2provider/schema_cloudflare_access_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ func resourceCloudflareAccessPolicySchema() map[string]*schema.Schema {
Description: consts.AccountIDSchemaDescription,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ConflictsWith: []string{consts.ZoneIDSchemaKey},
},
consts.ZoneIDSchemaKey: {
Description: consts.ZoneIDSchemaDescription,
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ConflictsWith: []string{consts.AccountIDSchemaKey},
},
"name": {
Expand Down

0 comments on commit 4708b62

Please sign in to comment.