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:
committed by
Craig Peterson
parent
a6536264b5
commit
921fa98490
@ -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 {
|
||||||
|
Reference in New Issue
Block a user