Skip to content

Commit

Permalink
Allow for DNSimple User API tokens to be used by implementing the DNS…
Browse files Browse the repository at this point in the history
…IMPLE_ACCOUNT_ID and DNSIMPLE_ZONES environment variables

Fix code linting error - remove () from ZonesFromZoneString which only returns one value
  • Loading branch information
IntegralProgrammer committed Mar 15, 2024
1 parent eb59b9b commit c54a9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/dnsimple/dnsimple.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c54a9a8

Please sign in to comment.