Use vault api.DefaultConfig()

Closes #11364
This commit is contained in:
Jason Felice 2017-01-30 15:24:19 -05:00
parent 7e71dfce0f
commit 7da8e9285e

View File

@ -91,9 +91,8 @@ func Provider() terraform.ResourceProvider {
}
func providerConfigure(d *schema.ResourceData) (interface{}, error) {
config := &api.Config{
Address: d.Get("address").(string),
}
config := api.DefaultConfig()
config.Address = d.Get("address").(string)
clientAuthI := d.Get("client_auth").([]interface{})
if len(clientAuthI) > 1 {