add new task delete_ldap_group
This commit is contained in:
parent
f2b8af39a0
commit
9b4bef0050
3 changed files with 16 additions and 1 deletions
|
@ -98,7 +98,19 @@ def delete_ldap_user(username):
|
|||
@shared_task
|
||||
def delete_ldap_group_if_empty(groupname):
|
||||
"""
|
||||
This task deletes the given group.
|
||||
This task deletes the given group if it is empty.
|
||||
|
||||
:param str groupname: the group name
|
||||
:return: True if the user has been deleted, False otherwise
|
||||
:rtype: boolean
|
||||
|
||||
"""
|
||||
|
||||
|
||||
@shared_task
|
||||
def delete_ldap_group(groupname):
|
||||
"""
|
||||
This taks deletes the given group.
|
||||
|
||||
:param str groupname: the group name
|
||||
:return: True if the user has been deleted, False otherwise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue