Skip to content

Commit

Permalink
route53: Fix nil-pointer exception with alias resource records
Browse files Browse the repository at this point in the history
  • Loading branch information
janeczku committed May 12, 2016
1 parent 067b719 commit a16ef67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions providers/route53.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ func (r *Route53Handler) GetRecords() ([]dns.DnsRecord, error) {
}

for _, rrSet := range rrSets {
// skip proprietary Route 53 alias resource record sets
if rrSet.AliasTarget != nil {
continue
}
records := []string{}
for _, rr := range rrSet.ResourceRecords {
records = append(records, *rr.Value)
Expand Down

0 comments on commit a16ef67

Please sign in to comment.