Commit miss earlier, fix syntax from unstaged commit.
This commit is contained in:
parent
5280c37bea
commit
f253fc9eff
|
@ -93,8 +93,9 @@ func validateConnTimeout(v interface{}, key string) (warnings []string, errors [
|
||||||
|
|
||||||
func providerConfigure(d *schema.ResourceData) (interface{}, error) {
|
func providerConfigure(d *schema.ResourceData) (interface{}, error) {
|
||||||
var sslMode string
|
var sslMode string
|
||||||
var ok bool
|
if sslModeRaw, ok := d.GetOk("sslmode"); ok {
|
||||||
if sslMode, ok = d.GetOk("sslmode").(string); !ok {
|
sslMode = sslModeRaw.(string)
|
||||||
|
} else {
|
||||||
sslMode = d.Get("ssl_mode").(string)
|
sslMode = d.Get("ssl_mode").(string)
|
||||||
}
|
}
|
||||||
config := Config{
|
config := Config{
|
||||||
|
|
Loading…
Reference in New Issue