Skip to content

Commit

Permalink
Revert "Workaround to allow weight = 0 in Route53 RRs"
Browse files Browse the repository at this point in the history
This conflicts with alias records types other than weighted.
  • Loading branch information
Adam Mielke committed Oct 21, 2015
1 parent 79abe7b commit 04b45e1
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 04b45e1

Please sign in to comment.