Rename variable from `roleSuperUserAttr` to `roleSuperuserAttr`.
This commit is contained in:
parent
15cd542392
commit
b576a3eda1
|
@ -23,7 +23,7 @@ const (
|
||||||
roleNameAttr = "name"
|
roleNameAttr = "name"
|
||||||
rolePasswordAttr = "password"
|
rolePasswordAttr = "password"
|
||||||
roleReplicationAttr = "replication"
|
roleReplicationAttr = "replication"
|
||||||
roleSuperUserAttr = "superuser"
|
roleSuperuserAttr = "superuser"
|
||||||
roleValidUntilAttr = "valid_until"
|
roleValidUntilAttr = "valid_until"
|
||||||
|
|
||||||
// Deprecated options
|
// Deprecated options
|
||||||
|
@ -78,7 +78,7 @@ func resourcePostgreSQLRole() *schema.Resource {
|
||||||
Description: "How many concurrent connections can be made with this role",
|
Description: "How many concurrent connections can be made with this role",
|
||||||
ValidateFunc: validateConnLimit,
|
ValidateFunc: validateConnLimit,
|
||||||
},
|
},
|
||||||
roleSuperUserAttr: {
|
roleSuperuserAttr: {
|
||||||
Type: schema.TypeBool,
|
Type: schema.TypeBool,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: false,
|
Default: false,
|
||||||
|
@ -150,7 +150,7 @@ func resourcePostgreSQLRoleCreate(d *schema.ResourceData, meta interface{}) erro
|
||||||
sqlKeyEnable string
|
sqlKeyEnable string
|
||||||
sqlKeyDisable string
|
sqlKeyDisable string
|
||||||
}{
|
}{
|
||||||
{roleSuperUserAttr, "CREATEDB", "NOCREATEDB"},
|
{roleSuperuserAttr, "CREATEDB", "NOCREATEDB"},
|
||||||
{roleCreateRoleAttr, "CREATEROLE", "NOCREATEROLE"},
|
{roleCreateRoleAttr, "CREATEROLE", "NOCREATEROLE"},
|
||||||
{roleInheritAttr, "INHERIT", "NOINHERIT"},
|
{roleInheritAttr, "INHERIT", "NOINHERIT"},
|
||||||
{roleLoginAttr, "LOGIN", "NOLOGIN"},
|
{roleLoginAttr, "LOGIN", "NOLOGIN"},
|
||||||
|
|
Loading…
Reference in New Issue