mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-06 21:24:18 +08:00
verifyCNAMEAssertions should warn, not panic (#2340)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
This commit is contained in:
parent
ace2242daf
commit
0d479b2780
1 changed files with 2 additions and 2 deletions
|
@ -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.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue