mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
users: Don't delete 'admin' group when running unit tests
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
7499b687c8
commit
b01ac54dd3
1 file changed
+2
-1
@@ -132,7 +132,8 @@ def _create_user(username=None, groups=None):
|
||||
if groups:
|
||||
for group in groups:
|
||||
_call_action(['add-user-to-group', username, group])
|
||||
_cleanup_groups.add(group)
|
||||
if group != 'admin':
|
||||
_cleanup_groups.add(group)
|
||||
|
||||
_cleanup_users.add(username)
|
||||
return username, password
|
||||
|
||||
Reference in new issue
Block a user