Add comments requesting that the testing-specific environment variables

can be removed in Terraform 0.8.0
This commit is contained in:
Sean Chittenden 2016-09-05 16:24:26 -07:00
parent b68ef2c40b
commit ec130d538c
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 7 additions and 4 deletions

View File

@ -13,6 +13,7 @@ func Provider() terraform.ResourceProvider {
"host": {
Type: schema.TypeString,
Optional: true,
// FIXME: Remove POSTGRESQL_HOST in 0.8
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"PGHOST", "POSTGRESQL_HOST"}, nil),
Description: "The PostgreSQL server address",
},
@ -25,12 +26,14 @@ func Provider() terraform.ResourceProvider {
"username": {
Type: schema.TypeString,
Optional: true,
// FIXME: Remove POSTGRESQL_USER in 0.8
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"PGUSER", "POSTGRESQL_USER"}, nil),
Description: "Username for PostgreSQL server connection",
},
"password": {
Type: schema.TypeString,
Optional: true,
// FIXME: Remove POSTGRESQL_PASSWORD in 0.8
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"PGPASSWORD", "POSTGRESQL_PASSWORD"}, nil),
Description: "Password for PostgreSQL server connection",
},