From a16ef67bce404361ed2cc812e41f74dc798698c4 Mon Sep 17 00:00:00 2001 From: janeczku Date: Thu, 12 May 2016 23:12:29 +0200 Subject: [PATCH] route53: Fix nil-pointer exception with alias resource records https://github.com/rancher/rancher/issues/4671 --- providers/route53.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/providers/route53.go b/providers/route53.go index 78e2037..c309609 100755 --- a/providers/route53.go +++ b/providers/route53.go @@ -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)