mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-12 08:04:28 +08:00
Resolves #836
This commit is contained in:
parent
8e9aa14882
commit
f0e08cb01c
1 changed files with 2 additions and 4 deletions
|
@ -94,8 +94,7 @@ func (a *azureDNSProvider) getZones() error {
|
||||||
defer cancel()
|
defer cancel()
|
||||||
zonesIterator, zonesErr := a.zonesClient.ListByResourceGroup(ctx, *a.resourceGroup, to.Int32Ptr(100))
|
zonesIterator, zonesErr := a.zonesClient.ListByResourceGroup(ctx, *a.resourceGroup, to.Int32Ptr(100))
|
||||||
if zonesErr != nil {
|
if zonesErr != nil {
|
||||||
fmt.Errorf("getZones: zonesErr %v", zonesErr.Error())
|
return fmt.Errorf("getZones: zonesErr: %w", zonesErr)
|
||||||
return zonesErr
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check getExistingZones and https://github.com/StackExchange/dnscontrol/issues/792 for the details
|
// Check getExistingZones and https://github.com/StackExchange/dnscontrol/issues/792 for the details
|
||||||
|
@ -142,8 +141,7 @@ func (a *azureDNSProvider) ListZones() ([]string, error) {
|
||||||
defer cancel()
|
defer cancel()
|
||||||
zonesIterator, zonesErr := a.zonesClient.ListByResourceGroup(ctx, *a.resourceGroup, to.Int32Ptr(100))
|
zonesIterator, zonesErr := a.zonesClient.ListByResourceGroup(ctx, *a.resourceGroup, to.Int32Ptr(100))
|
||||||
if zonesErr != nil {
|
if zonesErr != nil {
|
||||||
fmt.Errorf("ListZones: zonesErr %v", zonesErr.Error())
|
return nil, fmt.Errorf("ListZones: zonesErr: %w", zonesErr)
|
||||||
return nil, zonesErr
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check getExistingZones and https://github.com/StackExchange/dnscontrol/issues/792 for the details
|
// Check getExistingZones and https://github.com/StackExchange/dnscontrol/issues/792 for the details
|
||||||
|
|
Loading…
Add table
Reference in a new issue