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

refactor corrections

This commit is contained in:
Tom Limoncelli
2023-03-03 16:23:46 -05:00
parent 91242d54dc
commit 4fa191df0c
5 changed files with 18 additions and 5 deletions

View File

@ -2,17 +2,19 @@ package commands
import (
"fmt"
"golang.org/x/net/idna"
"log"
"os"
"strings"
"golang.org/x/net/idna"
"github.com/StackExchange/dnscontrol/v3/models"
"github.com/StackExchange/dnscontrol/v3/pkg/credsfile"
"github.com/StackExchange/dnscontrol/v3/pkg/nameservers"
"github.com/StackExchange/dnscontrol/v3/pkg/normalize"
"github.com/StackExchange/dnscontrol/v3/pkg/notifications"
"github.com/StackExchange/dnscontrol/v3/pkg/printer"
"github.com/StackExchange/dnscontrol/v3/pkg/zonerecs"
"github.com/StackExchange/dnscontrol/v3/providers"
"github.com/urfave/cli/v2"
"golang.org/x/exp/slices"
@ -188,7 +190,7 @@ DomainLoop:
/// This is where we should audit?
corrections, err := provider.Driver.GetDomainCorrections(dc)
corrections, err := zonerecs.CorrectZoneRecords(provider.Driver, dc)
out.EndProvider(len(corrections), err)
if err != nil {
anyErrors = true