8000 add acl delete role · python-microservices/consulate@cea26d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit cea26d1

Browse files
committed
add acl delete role
1 parent db25705 commit cea26d1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

consulate/api/acl.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def update_policy(self,
135135
def delete_policy(self, id):
136136
"""Delete an existing policy with the given ID.
137137
:param str id: The ID of the policy.
138-
:param rtype: dict
138+
:param rtype: bool
139139
140140
"""
141141
return self._delete(["policy", id])
@@ -212,6 +212,14 @@ def update_role(self,
212212
policies=policies,
213213
service_identities=service_identities)))
214214

215+
def delete_role(self, id):
216+
"""Delete an existing role with the given ID.
217+
:param str id: The ID of the role.
218+
:param rtype: bool
219+
220+
"""
221+
return self._delete(["policy", id])
222+
215223
# NOTE: Everything below here is deprecated post consul-1.4.0.
216224

217225
def bootstrap(self):

0 commit comments

Comments
 (0)
0