Skip to content

Commit 5eef6d6

Browse files
authored
updated the way, users are compared while deletion (#160)
* updated the way, users are compared why deletion * added fragments * fixed typo
1 parent 12c6e2e commit 5eef6d6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
bugfixes:
3+
- puzzle.opnsense.system_access_users - Thanks to @GBBx fixed a bug while user deletion.

plugins/module_utils/system_access_users_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ def delete(self, user: User) -> None:
934934
None: This method does not return a value but updates the internal list of users.
935935
"""
936936

937-
self._users = [r for r in self._users if r != user]
937+
self._users = [r for r in self._users if r.name != user.name]
938938

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

0 commit comments

Comments
 (0)