Skip to content

Commit fc5b2ae

Browse files
author
Alena Prokharchyk
committed
Merge pull request #33 from janeczku/fix-route53-nil-pointer
route53: Fix nil-pointer exception with alias resource records
2 parents 067b719 + a16ef67 commit fc5b2ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

providers/route53.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ func (r *Route53Handler) GetRecords() ([]dns.DnsRecord, error) {
159159
}
160160

161161
for _, rrSet := range rrSets {
162+
// skip proprietary Route 53 alias resource record sets
163+
if rrSet.AliasTarget != nil {
164+
continue
165+
}
162166
records := []string{}
163167
for _, rr := range rrSet.ResourceRecords {
164168
records = append(records, *rr.Value)

0 commit comments

Comments
 (0)