1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Include record set type in record key. (#336)

This commit is contained in:
Koen Rouwhorst
2018-06-25 20:15:21 +02:00
committed by Craig Peterson
parent a6536264b5
commit 921fa98490

View File

@ -108,7 +108,13 @@ type key struct {
} }
func getKey(r *models.RecordConfig) key { 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 { type errNoExist struct {