mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
ROUTE53: fix R53_ZONE() handling for domains (#2306)
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
This commit is contained in:
@ -200,7 +200,7 @@ func GetZone(args GetZoneArgs) error {
|
||||
// fetch all of the records
|
||||
zoneRecs := make([]models.Records, len(zones))
|
||||
for i, zone := range zones {
|
||||
recs, err := provider.GetZoneRecords(zone)
|
||||
recs, err := provider.GetZoneRecords(zone, nil)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed GetZone gzr: %w", err)
|
||||
}
|
||||
|
@ -160,7 +160,8 @@ func run(args PreviewArgs, push bool, interactive bool, out printer.CLI) error {
|
||||
func(domain *models.DomainConfig) {
|
||||
defer wg.Done() // defer notify WaitGroup this anonymous function has finished
|
||||
|
||||
if !args.shouldRunDomain(domain.UniqueName) {
|
||||
uniquename := domain.GetUniqueName()
|
||||
if !args.shouldRunDomain(uniquename) {
|
||||
return
|
||||
}
|
||||
|
||||
@ -171,7 +172,7 @@ func run(args PreviewArgs, push bool, interactive bool, out printer.CLI) error {
|
||||
|
||||
// Correct the domain...
|
||||
|
||||
out.StartDomain(domain.UniqueName)
|
||||
out.StartDomain(uniquename)
|
||||
var providersWithExistingZone []*models.DNSProviderInstance
|
||||
/// For each DSP...
|
||||
for _, provider := range domain.DNSProviderInstances {
|
||||
|
Reference in New Issue
Block a user