hi,
I noticed an unexpected behavior in the way users and groups are managed in spawner. You can confirm that in pre_spawn_hook
for example.
def pre_spawn_hook(spawner):
user = spawner.user
groups = spawner.user.groups
for group in groups:
print(user in group.users) # gives False
print([user == u for u in group.users]) # the same, all are False
# each user in groups.users has again groups and so on
That means copies of users are stored in group.users but Why? is it done like this for a reason? or seems like a bug!
best