From d8a0bc4dc9d8b11e97b90cc8591c8f8bb5e6ca15 Mon Sep 17 00:00:00 2001 From: fboltz Date: Sun, 17 Jan 2021 17:25:33 +0100 Subject: [PATCH] Change arguments: OTE --- provider/godaddy/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/provider/godaddy/client.go b/provider/godaddy/client.go index 440c3ad27..6a0326f8b 100644 --- a/provider/godaddy/client.go +++ b/provider/godaddy/client.go @@ -77,13 +77,13 @@ type Client struct { } // NewClient represents a new client to call the API -func NewClient(production bool, apiKey, apiSecret string) (*Client, error) { +func NewClient(useOTE bool, apiKey, apiSecret string) (*Client, error) { var endpoint string - if production { - endpoint = "https://api.godaddy.com" - } else { + if useOTE { endpoint = " https://api.ote-godaddy.com" + } else { + endpoint = "https://api.godaddy.com" } client := Client{