Skip to content

Commit

Permalink
AZURE_DNS: GetZones error should report subscription id (#1415)
Browse files Browse the repository at this point in the history
* BIND: Bug: DefaultNS strips last char

* fixup!

* Report Subscription ID when Azure can't get zones
  • Loading branch information
tlimoncelli committed Feb 22, 2022
1 parent d5665ce commit 8b74b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/azuredns/azureDnsProvider.go
Expand Up @@ -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
Expand Down

0 comments on commit 8b74b7c

Please sign in to comment.