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 eca096f commit f786dc4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli/ldap_cmds/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ def update_roles(roles, user_ou, root_dn, add, remove, update_notes, user_note,

# create role filter
if len(roles_to_filter) > 0:
full_role_filter = (
f"(&(objectclass=NDRoleAssociation)(|{''.join(['(cn=' + role + ')' for role in roles_to_filter.split(',')])}))"
)
full_role_filter = f"(&(objectclass=NDRoleAssociation)(|{''.join(['(cn=' + role + ')' for role in roles_to_filter.split(',')])}))"
else:
full_role_filter = "(&(objectclass=NDRoleAssociation)(cn=*))"

Expand Down

0 comments on commit f786dc4

Please sign in to comment.