Code cleanup and style improvements in team sync
This commit is contained in:
parent
84e37b68ee
commit
7f0aa19292
3 changed files with 28 additions and 14 deletions
|
@ -274,8 +274,7 @@ class LDAPUsers(FederatedUsers):
|
|||
if err is not None:
|
||||
return (False, err)
|
||||
|
||||
results = list(it)
|
||||
if not results:
|
||||
if not list(it):
|
||||
return (False, 'Group does not exist or is empty')
|
||||
|
||||
return (True, None)
|
||||
|
@ -340,6 +339,6 @@ class LDAPUsers(FederatedUsers):
|
|||
# No additional results.
|
||||
break
|
||||
else:
|
||||
# Pagintation is not supported.
|
||||
# Pagination is not supported.
|
||||
logger.debug('Pagination is not supported for this LDAP server')
|
||||
break
|
||||
|
|
Reference in a new issue