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{