From 97c6c4740803ed9bc1ac2b9134e8e1abfc0cf412 Mon Sep 17 00:00:00 2001 From: "Vinicius D. Cerutti" <51954708+viniciusdc@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:17:49 -0300 Subject: [PATCH] fix group mounting paths (#2738) --- .../services/jupyterhub/files/jupyterhub/03-profiles.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/jupyterhub/files/jupyterhub/03-profiles.py b/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/jupyterhub/files/jupyterhub/03-profiles.py index 26e10c648b..b298ae5ae1 100644 --- a/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/jupyterhub/files/jupyterhub/03-profiles.py +++ b/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/jupyterhub/files/jupyterhub/03-profiles.py @@ -561,13 +561,13 @@ def render_profiles(spawner): # e.g. /projects/myproj -> myproj # and /developers -> developers groups = [Path(group).name for group in auth_state["oauth_user"]["groups"]] + groups_with_permission_to_mount = [ + Path(group).name + for group in auth_state.get("groups_with_permission_to_mount", []) + ] keycloak_profilenames = auth_state["oauth_user"].get("jupyterlab_profiles", []) - groups_with_permission_to_mount = auth_state.get( - "groups_with_permission_to_mount", [] - ) - # fetch available profiles and render additional attributes profile_list = z2jh.get_config("custom.profiles") return list(