OS_REGION -> OS_REGION_NAME (thank you @hartzell)
This commit is contained in:
parent
3112103acf
commit
48e92f8173
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue