diff --git a/builtin/providers/openstack/provider.go b/builtin/providers/openstack/provider.go index 188beadd7dd3..2d68d82ec888 100644 --- a/builtin/providers/openstack/provider.go +++ b/builtin/providers/openstack/provider.go @@ -44,7 +44,7 @@ func Provider() terraform.ResourceProvider { "api_key": &schema.Schema{ Type: schema.TypeString, Optional: true, - Default: "", + DefaultFunc: envDefaultFunc("OS_AUTH_TOKEN"), }, "domain_id": &schema.Schema{ Type: schema.TypeString,