Skip to content

Commit 01a4d44

Browse files
Apply suggestions from code review
overlord ai MR suggestions Co-authored-by: Copilot <[email protected]>
1 parent f17160c commit 01a4d44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgresql/resource_postgresql_role.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func resourcePostgreSQLRoleCreate(db *DBConnection, d *schema.ResourceData) erro
296296
createOpts = append(createOpts, "UNENCRYPTED")
297297
}
298298
createOpts = append(createOpts,
299-
fmt.Sprintf("%s '%s'", opt.sqlKey, pqQuoteLiteral(val))) // pqQuoteLiteral includes single quotes
299+
fmt.Sprintf("%s '%s'", opt.sqlKey, pqQuoteLiteral(val)))
300300
}
301301

302302
case roleValidUntilAttr:
@@ -797,7 +797,7 @@ func setRolePassword(txn *sql.Tx, d *schema.ResourceData) error {
797797
var password string
798798
if v, ok := getWO(d, rolePasswordWOAttr); ok {
799799
password = v // use the value from password_wo and reset the password state.
800-
d.Set(rolePasswordAttr, nil)
800+
d.Set(rolePasswordAttr, "")
801801
} else if v, ok := d.GetOk(rolePasswordAttr); ok && v.(string) != "" {
802802
password = v.(string) // use the clear-text password
803803
} else {

0 commit comments

Comments
 (0)