mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Show actual URL to use instead of just "sandbox" (#1166)
* Show actual URL to use instead of just "sandbox" Instead of stating "sandbox", sometimes incorrectly if sandbox is false, just output the actual URL that will be used. * Replace Println with Printf Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
@@ -12,13 +12,13 @@ type dnsMadeEasyProvider struct {
|
||||
}
|
||||
|
||||
func newProvider(apiKey string, secretKey string, sandbox bool, debug bool) *dnsMadeEasyProvider {
|
||||
fmt.Println("creating DNSMADEEASY provider for sandbox")
|
||||
|
||||
baseURL := baseURLV2_0
|
||||
if sandbox {
|
||||
baseURL = sandboxBaseURLV2_0
|
||||
}
|
||||
|
||||
fmt.Printf("Creating DNSMADEEASY provider for %q\n", baseURL)
|
||||
|
||||
return &dnsMadeEasyProvider{
|
||||
restAPI: &dnsMadeEasyRestAPI{
|
||||
apiKey: apiKey,
|
||||
|
Reference in New Issue
Block a user