mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-10 17:38:13 +08:00
BUGFIX: REPORT change type always crashes on push (#2130)
This commit is contained in:
parent
eb4af05d31
commit
ad4b8daa13
1 changed files with 8 additions and 5 deletions
|
@ -2,11 +2,12 @@ package commands
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"golang.org/x/net/idna"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"golang.org/x/net/idna"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v3/models"
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||||||
"github.com/StackExchange/dnscontrol/v3/pkg/credsfile"
|
"github.com/StackExchange/dnscontrol/v3/pkg/credsfile"
|
||||||
"github.com/StackExchange/dnscontrol/v3/pkg/nameservers"
|
"github.com/StackExchange/dnscontrol/v3/pkg/nameservers"
|
||||||
|
@ -495,10 +496,12 @@ func printOrRunCorrections(domain string, provider string, corrections []*models
|
||||||
if interactive && !out.PromptToRun() {
|
if interactive && !out.PromptToRun() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
err = correction.F()
|
if correction.F != nil {
|
||||||
out.EndCorrection(err)
|
err = correction.F()
|
||||||
if err != nil {
|
out.EndCorrection(err)
|
||||||
anyErrors = true
|
if err != nil {
|
||||||
|
anyErrors = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
notifier.Notify(domain, provider, correction.Msg, err, !push)
|
notifier.Notify(domain, provider, correction.Msg, err, !push)
|
||||||
|
|
Loading…
Reference in a new issue