mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
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:
parent
eb59b9bd4d
commit
c54a9a8df2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user