Skip to content

Commit

Permalink
TypeSet translates to a wrapper Set instead of an array like TypeList
Browse files Browse the repository at this point in the history
  • Loading branch information
fformica authored Jun 14, 2024
1 parent d530662 commit c84c965
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ns1/resource_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ func resourceDataToRecord(r *dns.Record, d *schema.ResourceData) error {
}
r.Filters = filters
}
if regions := d.Get("regions").([]interface{}); len(regions) > 0 {
for _, regionRaw := range regions {
if regions := d.Get("regions").(*schema.Set); regions.Len() > 0 {
for _, regionRaw := range regions.List() {
region := regionRaw.(map[string]interface{})
ns1R := data.Region{
Meta: data.Meta{},
Expand Down

0 comments on commit c84c965

Please sign in to comment.