Skip to content

Commit

Permalink
Formatted code with black --line-length 120
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 25, 2024
1 parent 136076d commit ce271c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cli/ldap_cmds/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def update_roles(roles, user_ou, root_dn, add, remove, update_notes, user_note,
except ValueError:
log.error("LDAP_PAGE_SIZE must be an integer")
raise ValueError("LDAP_PAGE_SIZE must be an integer")

page_control = SimplePagedResultsControl(True, size=ldap_page_size, cookie="")

try:
Expand All @@ -234,7 +234,11 @@ def update_roles(roles, user_ou, root_dn, add, remove, update_notes, user_note,
if cookie:
page_control.cookie = cookie
response = ldap_connection_role_filter.search_ext(
",".join([user_ou, root_dn]), ldap.SCOPE_SUBTREE, full_role_filter, ["cn"], serverctrls=[page_control]
",".join([user_ou, root_dn]),
ldap.SCOPE_SUBTREE,
full_role_filter,
["cn"],
serverctrls=[page_control],
)
else:
break
Expand Down

0 comments on commit ce271c3

Please sign in to comment.