Commit miss earlier, fix syntax from unstaged commit.

This commit is contained in:
Sean Chittenden 2016-11-06 01:21:45 -08:00
parent 5280c37bea
commit f253fc9eff
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 3 additions and 2 deletions

View File

@ -93,8 +93,9 @@ func validateConnTimeout(v interface{}, key string) (warnings []string, errors [
func providerConfigure(d *schema.ResourceData) (interface{}, error) {
var sslMode string
var ok bool
if sslMode, ok = d.GetOk("sslmode").(string); !ok {
if sslModeRaw, ok := d.GetOk("sslmode"); ok {
sslMode = sslModeRaw.(string)
} else {
sslMode = d.Get("ssl_mode").(string)
}
config := Config{