From 48e92f8173063cb8214eef4a3175c547ad1965a1 Mon Sep 17 00:00:00 2001 From: Jon Perritt Date: Sun, 4 Jan 2015 15:26:57 -0700 Subject: [PATCH] OS_REGION -> OS_REGION_NAME (thank you @hartzell) --- builtin/providers/openstack/provider.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/openstack/provider.go b/builtin/providers/openstack/provider.go index a134c3d07..356081d19 100644 --- a/builtin/providers/openstack/provider.go +++ b/builtin/providers/openstack/provider.go @@ -14,7 +14,7 @@ func Provider() terraform.ResourceProvider { "region": &schema.Schema{ Type: schema.TypeString, Required: true, - DefaultFunc: envDefaultFunc("OS_REGION"), + DefaultFunc: envDefaultFunc("OS_REGION_NAME"), Description: descriptions["region"], }, @@ -61,7 +61,7 @@ func configureProvider(d *schema.ResourceData) (interface{}, error) { IdentityEndpoint: d.Get("auth_url").(string), Username: d.Get("username").(string), Password: d.Get("password").(string), - TenantName: d.Get("tenant_name").(string), + TenantName: d.Get("tenant_name").(string), } if err := config.loadAndValidate(); err != nil {