Skip to content

Commit

Permalink
resource/cloudflare_record: Convert the cast to a pointer to match up…
Browse files Browse the repository at this point in the history
…dates to cloudflare-go
  • Loading branch information
iveelsm committed Sep 14, 2023
1 parent 163a167 commit b38c646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/2763.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/cloudflare_record: Updates the cast to a pointer to match changes in the SDK
```
2 changes: 1 addition & 1 deletion internal/sdkv2provider/resource_cloudflare_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func resourceCloudflareRecordUpdate(ctx context.Context, d *schema.ResourceData,
}

if comment, ok := d.GetOk("comment"); ok {
updateRecord.Comment = comment.(string)
updateRecord.Comment = comment.(*string)
}

tags := []string{}
Expand Down

0 comments on commit b38c646

Please sign in to comment.