[fix] uid will be tested as a string

This commit is contained in:
Laurent Peuch 2020-04-09 12:29:44 +02:00
parent 0a482fd879
commit c0f94ba98a

View file

@ -165,8 +165,8 @@ def user_create(operation_logger, username, firstname, lastname, mail, password,
operation_logger.start() operation_logger.start()
# Get random UID/GID # Get random UID/GID
all_uid = {x.pw_uid for x in pwd.getpwall()} all_uid = {str(x.pw_uid) for x in pwd.getpwall()}
all_gid = {x.gr_gid for x in grp.getgrall()} all_gid = {str(x.gr_gid) for x in grp.getgrall()}
uid_guid_found = False uid_guid_found = False
while not uid_guid_found: while not uid_guid_found: