mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
BUGFIX: Skip AuditRecords when running dnscontrol check (#1508)
Fixes 1507
This commit is contained in:
@ -467,6 +467,12 @@ func ValidateAndNormalizeConfig(config *models.DNSConfig) (errs []error) {
|
|||||||
// Let's ask the provider if there are any records they can't handle.
|
// Let's ask the provider if there are any records they can't handle.
|
||||||
for _, domain := range config.Domains { // For each domain..
|
for _, domain := range config.Domains { // For each domain..
|
||||||
for _, provider := range domain.DNSProviderInstances { // For each provider...
|
for _, provider := range domain.DNSProviderInstances { // For each provider...
|
||||||
|
if provider.ProviderBase.ProviderType == "-" {
|
||||||
|
// The point of "dnscontrol check" is that it doesn't require
|
||||||
|
// creds.json. Since the ProviderType is in creds.json, these
|
||||||
|
// pre-providerType checks must be skipped.
|
||||||
|
continue
|
||||||
|
}
|
||||||
if err := providers.AuditRecords(provider.ProviderBase.ProviderType, domain.Records); err != nil {
|
if err := providers.AuditRecords(provider.ProviderBase.ProviderType, domain.Records); err != nil {
|
||||||
errs = append(errs, err)
|
errs = append(errs, err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user