From 921fa9849001d42494b23feadbe069d1dd46d916 Mon Sep 17 00:00:00 2001 From: Koen Rouwhorst Date: Mon, 25 Jun 2018 20:15:21 +0200 Subject: [PATCH] Include record set type in record key. (#336) --- providers/route53/route53Provider.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/providers/route53/route53Provider.go b/providers/route53/route53Provider.go index d1b2ab410..45baa0664 100644 --- a/providers/route53/route53Provider.go +++ b/providers/route53/route53Provider.go @@ -108,7 +108,13 @@ type key struct { } func getKey(r *models.RecordConfig) key { - return key{r.GetLabelFQDN(), r.Type} + var recordType = r.Type + + if r.R53Alias != nil { + recordType = fmt.Sprintf("%s_%s", recordType, r.R53Alias["type"]) + } + + return key{r.GetLabelFQDN(), recordType} } type errNoExist struct {