Skip to content

Commit e7e40c7

Browse files
author
Florian AYMARD
committed
Remove revoke on creation
1 parent 9b5db60 commit e7e40c7

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

postgresql/resource_postgresql_grant_role.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ func resourcePostgreSQLGrantRole() *schema.Resource {
5252
Default: false,
5353
Description: "Permit the grant recipient to grant it to others",
5454
},
55-
"revoke": {
56-
Type: schema.TypeBool,
57-
Optional: true,
58-
ForceNew: true,
59-
Default: false,
60-
Description: "Revoke the granted roles before granting them again",
61-
},
6255
},
6356
}
6457
}
@@ -88,13 +81,6 @@ func resourcePostgreSQLGrantRoleCreate(db *DBConnection, d *schema.ResourceData)
8881
}
8982
defer deferredRollback(txn)
9083

91-
// Revoke the granted roles before granting them again.
92-
if rev, _ := d.Get("revoke").(bool); rev {
93-
if err = revokeRole(txn, d); err != nil {
94-
return err
95-
}
96-
}
97-
9884
if err = grantRole(txn, d); err != nil {
9985
return err
10086
}

0 commit comments

Comments
 (0)