Style nit

This commit is contained in:
Sean Chittenden 2016-11-06 13:17:54 -08:00
parent bfc2a2d42f
commit db5d7b0438
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 2 additions and 2 deletions

View File

@ -225,10 +225,10 @@ func resourcePostgreSQLDatabaseCreate(d *schema.ResourceData, meta interface{})
}
for _, opt := range boolOpts {
v := d.Get(opt.hclKey)
val := d.Get(opt.hclKey).(bool)
valStr := "FALSE"
if val := v.(bool); val {
if val {
valStr = "TRUE"
}
createOpts = append(createOpts, fmt.Sprintf("%s=%s", opt.sqlKey, valStr))