Skip to content

Commit

Permalink
Merge pull request hashicorp#2 from acm1/feature/aws-route53-latency-…
Browse files Browse the repository at this point in the history
…and-geo

Fix for alias record types other than "weighted"
  • Loading branch information
acm1 committed Oct 21, 2015
2 parents a981941 + 04b45e1 commit c905b28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builtin/providers/aws/resource_aws_route53_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,12 @@ func resourceAwsRoute53RecordBuildSet(d *schema.ResourceData, zoneName string) (
rec.HealthCheckId = aws.String(v.(string))
}

if v, ok := d.GetOk("weight"); ok {
rec.Weight = aws.Int64(int64(v.(int)))
}

if v, ok := d.GetOk("set_identifier"); ok {
rec.SetIdentifier = aws.String(v.(string))
rec.Weight = aws.Int64(int64(d.Get("weight").(int)))
}

if v, ok := d.GetOk("region"); ok {
Expand Down

0 comments on commit c905b28

Please sign in to comment.