From c54a9a8df2e806f11441ce72820cdb978be3d97c Mon Sep 17 00:00:00 2001 From: Michael Lescisin Date: Thu, 14 Mar 2024 20:45:21 -0400 Subject: [PATCH] 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 --- provider/dnsimple/dnsimple.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/dnsimple/dnsimple.go b/provider/dnsimple/dnsimple.go index aa205a2e0..ad1eb3566 100644 --- a/provider/dnsimple/dnsimple.go +++ b/provider/dnsimple/dnsimple.go @@ -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 {