From b576a3eda1a31137205683fbbe203b912bd3d4c7 Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Mon, 12 Dec 2016 01:07:26 -0800 Subject: [PATCH] Rename variable from `roleSuperUserAttr` to `roleSuperuserAttr`. --- builtin/providers/postgresql/resource_postgresql_role.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/providers/postgresql/resource_postgresql_role.go b/builtin/providers/postgresql/resource_postgresql_role.go index dc4191871..0c3811108 100644 --- a/builtin/providers/postgresql/resource_postgresql_role.go +++ b/builtin/providers/postgresql/resource_postgresql_role.go @@ -23,7 +23,7 @@ const ( roleNameAttr = "name" rolePasswordAttr = "password" roleReplicationAttr = "replication" - roleSuperUserAttr = "superuser" + roleSuperuserAttr = "superuser" roleValidUntilAttr = "valid_until" // Deprecated options @@ -78,7 +78,7 @@ func resourcePostgreSQLRole() *schema.Resource { Description: "How many concurrent connections can be made with this role", ValidateFunc: validateConnLimit, }, - roleSuperUserAttr: { + roleSuperuserAttr: { Type: schema.TypeBool, Optional: true, Default: false, @@ -150,7 +150,7 @@ func resourcePostgreSQLRoleCreate(d *schema.ResourceData, meta interface{}) erro sqlKeyEnable string sqlKeyDisable string }{ - {roleSuperUserAttr, "CREATEDB", "NOCREATEDB"}, + {roleSuperuserAttr, "CREATEDB", "NOCREATEDB"}, {roleCreateRoleAttr, "CREATEROLE", "NOCREATEROLE"}, {roleInheritAttr, "INHERIT", "NOINHERIT"}, {roleLoginAttr, "LOGIN", "NOLOGIN"},