provider/dnsimple: Don't prompt the user for email address (#12619)

As part of the new changes to the DNSimple provider, we changed to use
the new API version. This requires a token and *not* email address

In order for backwards compatibility - we kept the email address in the
schema but we had the default as nil, meaning that Terraform was
prompting the user for it, they would enter it, then Terraform would
error out due to using a combination of token and email address

This commit makes the default email address an empty String. This means
we don't prompt the user
This commit is contained in:
Paul Stack 2017-03-13 10:07:53 +02:00 committed by GitHub
parent aa4676e622
commit e973176bb9
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ func Provider() terraform.ResourceProvider {
"email": &schema.Schema{
Type: schema.TypeString,
Optional: true,
DefaultFunc: schema.EnvDefaultFunc("DNSIMPLE_EMAIL", nil),
DefaultFunc: schema.EnvDefaultFunc("DNSIMPLE_EMAIL", ""),
Description: "The DNSimple account email address.",
},