mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-15 19:22:46 -06:00
Prefer PGHOSTADDR over PGHOST, if set.
This commit is contained in:
parent
3779dfffa9
commit
55061d190a
@ -14,7 +14,7 @@ func Provider() terraform.ResourceProvider {
|
||||
Type: schema.TypeString,
|
||||
Optional: true,
|
||||
// TODO(sean@): Remove POSTGRESQL_HOST in 0.8
|
||||
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"PGHOST", "POSTGRESQL_HOST"}, nil),
|
||||
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"PGHOSTADDR", "PGHOST", "POSTGRESQL_HOST"}, nil),
|
||||
Description: "Name of PostgreSQL server address to connect to",
|
||||
},
|
||||
"port": {
|
||||
|
Loading…
Reference in New Issue
Block a user