Allow for DNSimple User API tokens to be used by implementing the DNSIMPLE_ACCOUNT_ID and DNSIMPLE_ZONES environment variables

Fix code linting error - remove () from ZonesFromZoneString which only returns one value
This commit is contained in:
Michael Lescisin 2024-03-14 20:45:21 -04:00
parent eb59b9bd4d
commit c54a9a8df2

View File

@ -151,7 +151,7 @@ func (p *dnsimpleProvider) GetAccountID(ctx context.Context) (accountID string,
return int64ToString(whoamiResponse.Data.Account.ID), nil
}
func ZonesFromZoneString(zonestring string) (map[string]dnsimple.Zone) {
func ZonesFromZoneString(zonestring string) map[string]dnsimple.Zone {
zones := make(map[string]dnsimple.Zone)
zoneNames := strings.Split(zonestring, ",")
for indexId, zoneName := range zoneNames {