Skip to content

Commit

Permalink
[enh] Use add instead of update
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
  • Loading branch information
zamentur and alexAubin authored Jan 27, 2025
1 parent f098086 commit 63c1cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ def user_group_update(

if new_attr_dict["mail"]:
new_attr_dict["objectClass"] = set(group["objectClass"])
new_attr_dict["objectClass"].update({"mailGroup"})
new_attr_dict["objectClass"].add("mailGroup")
else:
new_attr_dict["objectClass"] = set(group["objectClass"]) - {"mailGroup", "mailAccount"}

Expand Down

0 comments on commit 63c1cd2

Please sign in to comment.