![](https://seccdn.libravatar.org/avatar/9181eb84f9c35729a3bad740fb7f9d93.jpg?s=120&d=mm&r=g)
Branch: refs/heads/clean-internal-data-after-deletion Home: https://github.com/yast/yast-users Commit: 284d09e20afcd1af91a2faba7b4a9b6039d55fca https://github.com/yast/yast-users/commit/284d09e20afcd1af91a2faba7b4a9b6039... Author: David Díaz González <dgonzalez@suse.de> Date: 2021-11-10 (Wed, 10 Nov 2021) Changed paths: M src/modules/Users.pm Log Message: ----------- Flush removed elements after each write The Users module was not reseting its internal data structure for removed elements after each write action. With previous code writing the /etc/passwd and /etc/groups files directly, this was not a problem. It simply didn't write the "deleted" elements. Now that new code is running a "userdel" and "groupdel" commands to remove them, an error for the first previously deleted element is prompted after running a "Write Changes Now" action. Reseting "removed" lists internally at the end of each #Write action fixes the problem.