mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
verifyCNAMEAssertions should warn, not panic (#2340)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
This commit is contained in:
@@ -156,13 +156,13 @@ func (cc *CompareConfig) verifyCNAMEAssertions() {
|
||||
|
||||
if len(td.existingTargets) != 0 {
|
||||
if j != 0 {
|
||||
panic("should not happen: (CNAME not in first position)")
|
||||
fmt.Println("WARNING: should not happen: (CNAME not in FIRST position)")
|
||||
}
|
||||
}
|
||||
|
||||
if len(td.desiredTargets) != 0 {
|
||||
if j != highest(ld.tdata) {
|
||||
panic("should not happen: (CNAME not in last position)")
|
||||
fmt.Println("WARNING: should not happen: (CNAME not in last position). There are multiple records on a label with a CNAME.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user