1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

AZURE_DNS: GetZones error should report subscription id (#1415)

* BIND: Bug: DefaultNS strips last char

* fixup!

* Report Subscription ID when Azure can't get zones
This commit is contained in:
Tom Limoncelli
2022-02-22 13:34:57 -05:00
committed by GitHub
parent d5665ceaf6
commit 8b74b7c470

View File

@@ -98,7 +98,7 @@ func (a *azurednsProvider) getZones() error {
defer cancel()
zonesIterator, zonesErr := a.zonesClient.ListByResourceGroup(ctx, *a.resourceGroup, to.Int32Ptr(100))
if zonesErr != nil {
return fmt.Errorf("getZones: zonesErr: %w", zonesErr)
return fmt.Errorf("getZones: zonesErr: SubscriptionID=%q err=%w", a.zonesClient.BaseClient.SubscriptionID, zonesErr)
}
// Check getExistingZones and https://github.com/StackExchange/dnscontrol/issues/792 for the details