Finishing up the needed changes

Also executed the acceptance tests successfully now.
This commit is contained in:
Sander van Harmelen 2014-12-16 00:59:47 +01:00
parent ee7b33acf4
commit 43a30e7d13
1 changed files with 5 additions and 5 deletions

View File

@ -236,11 +236,11 @@ func resourceAwsRoute53RecordDelete(d *schema.ResourceData, meta interface{}) er
}
func resourceAwsRoute53RecordBuildSet(d *schema.ResourceData) (*route53.ResourceRecordSet, error) {
recs := d.Get("records.#").(int)
records := make([]string, 0, recs)
for i := 0; i < recs; i++ {
key := fmt.Sprintf("records.%d", i)
records = append(records, d.Get(key).(string))
recs := d.Get("records").(*schema.Set).List()
records := make([]string, 0, len(recs))
for _, r := range recs {
records = append(records, r.(string))
}
rec := &route53.ResourceRecordSet{