providers/nomad: use DefaultConfig to intialize all fields

pull/10245/head
Mitchell Hashimoto 10 years ago
parent 283d49f12f
commit 4406e27eaa
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A

@ -35,10 +35,9 @@ func Provider() terraform.ResourceProvider {
}
func providerConfigure(d *schema.ResourceData) (interface{}, error) {
config := &api.Config{
Address: d.Get("address").(string),
Region: d.Get("region").(string),
}
config := api.DefaultConfig()
config.Address = d.Get("address").(string)
config.Region = d.Get("region").(string)
client, err := api.NewClient(config)
if err != nil {

Loading…
Cancel
Save