Eh, specify default values lib/pq zero initializes itself
This commit is contained in:
parent
7e5ccc089b
commit
2aee081e4b
|
@ -20,14 +20,14 @@ func Provider() terraform.ResourceProvider {
|
||||||
"port": {
|
"port": {
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"PGPORT"}, nil),
|
DefaultFunc: schema.EnvDefaultFunc("PGPORT", 5432),
|
||||||
Description: "The PostgreSQL server port",
|
Description: "The PostgreSQL server port",
|
||||||
},
|
},
|
||||||
"username": {
|
"username": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
// FIXME: Remove POSTGRESQL_USER in 0.8
|
// FIXME: Remove POSTGRESQL_USER in 0.8
|
||||||
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"PGUSER", "POSTGRESQL_USER"}, nil),
|
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"PGUSER", "POSTGRESQL_USER"}, "postgres"),
|
||||||
Description: "Username for PostgreSQL server connection",
|
Description: "Username for PostgreSQL server connection",
|
||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
|
|
Loading…
Reference in New Issue