From f253fc9eff87fb63c089a99250df7af4298936f3 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Sun, 6 Nov 2016 01:21:45 -0800 Subject: [PATCH] Commit miss earlier, fix syntax from unstaged commit. --- builtin/providers/postgresql/provider.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/builtin/providers/postgresql/provider.go b/builtin/providers/postgresql/provider.go index 9ca012d85..966375ca8 100644 --- a/builtin/providers/postgresql/provider.go +++ b/builtin/providers/postgresql/provider.go @@ -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{