Skip to content

Commit

Permalink
ldap: fix inconsistent comparison between old and new value
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Feb 23, 2025
1 parent 22dfd1d commit e174505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def modifyModlist_finegrained(old_entry: dict, new_entry: dict) -> list:
old_value = {old_value}
if isinstance(value, set) and value == set(old_value):
continue
if isinstance(value, list) and value == old_value:
if isinstance(value, list) and value == list(old_value):
continue

if not old_value:
Expand Down

0 comments on commit e174505

Please sign in to comment.