mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
BUGFIX: REPORT change type always crashes on push (#2130)
This commit is contained in:
@ -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,12 +496,14 @@ func printOrRunCorrections(domain string, provider string, corrections []*models
|
|||||||
if interactive && !out.PromptToRun() {
|
if interactive && !out.PromptToRun() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if correction.F != nil {
|
||||||
err = correction.F()
|
err = correction.F()
|
||||||
out.EndCorrection(err)
|
out.EndCorrection(err)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
anyErrors = true
|
anyErrors = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
notifier.Notify(domain, provider, correction.Msg, err, !push)
|
notifier.Notify(domain, provider, correction.Msg, err, !push)
|
||||||
}
|
}
|
||||||
return anyErrors
|
return anyErrors
|
||||||
|
Reference in New Issue
Block a user