From ce271c332d4379677b54d9783e3696456a5337a0 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 25 Jul 2024 17:24:24 +0000 Subject: [PATCH] Formatted code with black --line-length 120 --- cli/ldap_cmds/user.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cli/ldap_cmds/user.py b/cli/ldap_cmds/user.py index 7abefa1..2ad4a02 100644 --- a/cli/ldap_cmds/user.py +++ b/cli/ldap_cmds/user.py @@ -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: @@ -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