@@ -75,7 +75,7 @@ func ResourceDNSRecordset() *schema.Resource {
75
75
Description : `The type of the record set.` ,
76
76
},
77
77
"records" : {
78
- Type : schema .TypeList ,
78
+ Type : schema .TypeSet ,
79
79
Elem : & schema.Schema {Type : schema .TypeString },
80
80
MinItems : 1 ,
81
81
Required : true ,
@@ -233,7 +233,7 @@ func buildCreateDNSRecordsetBodyParams(d *schema.ResourceData) map[string]interf
233
233
"type" : utils .ValueIgnoreEmpty (d .Get ("type" )),
234
234
"status" : utils .ValueIgnoreEmpty (d .Get ("status" )),
235
235
"ttl" : utils .ValueIgnoreEmpty (d .Get ("ttl" )),
236
- "records" : utils .ValueIgnoreEmpty (d .Get ("records" )),
236
+ "records" : utils .ValueIgnoreEmpty (d .Get ("records" ).( * schema. Set ). List () ),
237
237
"line" : utils .ValueIgnoreEmpty (d .Get ("line_id" )),
238
238
"tags" : utils .ExpandResourceTagsMap (d .Get ("tags" ).(map [string ]interface {})),
239
239
"weight" : utils .ValueIgnoreEmpty (d .Get ("weight" )),
@@ -435,7 +435,7 @@ func buildUpdateDNSRecordsetBodyParams(d *schema.ResourceData) map[string]interf
435
435
"description" : utils .ValueIgnoreEmpty (d .Get ("description" )),
436
436
"type" : utils .ValueIgnoreEmpty (d .Get ("type" )),
437
437
"ttl" : utils .ValueIgnoreEmpty (d .Get ("ttl" )),
438
- "records" : utils .ValueIgnoreEmpty (d .Get ("records" )),
438
+ "records" : utils .ValueIgnoreEmpty (d .Get ("records" ).( * schema. Set ). List () ),
439
439
"weight" : utils .ValueIgnoreEmpty (d .Get ("weight" )),
440
440
}
441
441
return bodyParams
0 commit comments