Skip to content

Commit

Permalink
updated the way, users are compared while deletion (#160)
Browse files Browse the repository at this point in the history
* updated the way, users are compared why deletion

* added fragments

* fixed typo
  • Loading branch information
KiLLuuuhh authored Nov 7, 2024
1 parent 12c6e2e commit 5eef6d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelogs/fragments/160-fix-user-removal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- puzzle.opnsense.system_access_users - Thanks to @GBBx fixed a bug while user deletion.
2 changes: 1 addition & 1 deletion plugins/module_utils/system_access_users_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ def delete(self, user: User) -> None:
None: This method does not return a value but updates the internal list of users.
"""

self._users = [r for r in self._users if r != user]
self._users = [r for r in self._users if r.name != user.name]

def find(self, **kwargs) -> Optional[User]:
"""
Expand Down

0 comments on commit 5eef6d6

Please sign in to comment.