OS_REGION -> OS_REGION_NAME (thank you @hartzell)

This commit is contained in:
Jon Perritt 2015-01-04 15:26:57 -07:00
parent 3112103acf
commit 48e92f8173
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ func Provider() terraform.ResourceProvider {
"region": &schema.Schema{ "region": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Required: true, Required: true,
DefaultFunc: envDefaultFunc("OS_REGION"), DefaultFunc: envDefaultFunc("OS_REGION_NAME"),
Description: descriptions["region"], Description: descriptions["region"],
}, },
@ -61,7 +61,7 @@ func configureProvider(d *schema.ResourceData) (interface{}, error) {
IdentityEndpoint: d.Get("auth_url").(string), IdentityEndpoint: d.Get("auth_url").(string),
Username: d.Get("username").(string), Username: d.Get("username").(string),
Password: d.Get("password").(string), Password: d.Get("password").(string),
TenantName: d.Get("tenant_name").(string), TenantName: d.Get("tenant_name").(string),
} }
if err := config.loadAndValidate(); err != nil { if err := config.loadAndValidate(); err != nil {