mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] uid will be tested as a string
This commit is contained in:
parent
0a482fd879
commit
c0f94ba98a
1 changed files with 2 additions and 2 deletions
|
@ -165,8 +165,8 @@ def user_create(operation_logger, username, firstname, lastname, mail, password,
|
|||
operation_logger.start()
|
||||
|
||||
# Get random UID/GID
|
||||
all_uid = {x.pw_uid for x in pwd.getpwall()}
|
||||
all_gid = {x.gr_gid for x in grp.getgrall()}
|
||||
all_uid = {str(x.pw_uid) for x in pwd.getpwall()}
|
||||
all_gid = {str(x.gr_gid) for x in grp.getgrall()}
|
||||
|
||||
uid_guid_found = False
|
||||
while not uid_guid_found:
|
||||
|
|
Loading…
Add table
Reference in a new issue