Fixes #2212 by allowing OS_AUTH_TOKEN to set api_key config value

This commit is contained in:
Travis Truman 2015-06-04 14:27:18 -04:00
parent e2e2cd097e
commit 7fe29efc1d
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ func Provider() terraform.ResourceProvider {
"api_key": &schema.Schema{ "api_key": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
Default: "", DefaultFunc: envDefaultFunc("OS_AUTH_TOKEN"),
}, },
"domain_id": &schema.Schema{ "domain_id": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,