mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
providers/nomad: use DefaultConfig to intialize all fields
This commit is contained in:
parent
283d49f12f
commit
4406e27eaa
@ -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…
Reference in New Issue
Block a user