Eh, specify default values lib/pq zero initializes itself

This commit is contained in:
Sean Chittenden 2016-09-05 17:14:26 -07:00
parent 7e5ccc089b
commit 2aee081e4b
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 2 additions and 2 deletions

View File

@ -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": {