Skip to content

Commit

Permalink
Merge pull request #33 from janeczku/fix-route53-nil-pointer
Browse files Browse the repository at this point in the history
route53: Fix nil-pointer exception with alias resource records
  • Loading branch information
Alena Prokharchyk committed May 12, 2016
2 parents 067b719 + a16ef67 commit fc5b2ae
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 fc5b2ae

Please sign in to comment.