mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-05 06:36:11 +02:00
Change arguments: OTE
This commit is contained in:
parent
0fdd2a8eaf
commit
d8a0bc4dc9
@ -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{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user