mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
@ -6,6 +6,6 @@ package bindserial
|
||||
// by isolating it to this file we limit the blast radius of this bad
|
||||
// decision.
|
||||
|
||||
// ForceBindSerial if non-zero, BIND will generate SOA serial numbers
|
||||
// ForcedValue if non-zero, BIND will generate SOA serial numbers
|
||||
// using this value.
|
||||
var ForcedValue int64
|
||||
|
@ -187,7 +187,7 @@ func ByZone(existing models.Records, dc *models.DomainConfig, compFunc Comparabl
|
||||
// Only return the messages. The caller has the list of records needed to build the new zone.
|
||||
instructions, err := byHelper(analyzeByRecord, existing, dc, compFunc)
|
||||
changes := false
|
||||
for i, _ := range instructions {
|
||||
for i := range instructions {
|
||||
//fmt.Printf("DEBUG: ByZone #%d: %v\n", i, ii)
|
||||
if instructions[i].Type != REPORT {
|
||||
changes = true
|
||||
|
@ -38,7 +38,7 @@ func CorrectZoneRecords(driver models.DNSProvider, dc *models.DomainConfig) ([]*
|
||||
// corrections that are purely informational. (i.e. `.F` is nil)
|
||||
func CountActionable(corrections []*models.Correction) int {
|
||||
count := 0
|
||||
for i, _ := range corrections {
|
||||
for i := range corrections {
|
||||
if corrections[i].F != nil {
|
||||
count++
|
||||
}
|
||||
|
Reference in New Issue
Block a user