diff --git a/custom/4.0.0/handler/page_handlers.py b/custom/4.0.0/handler/page_handlers.py index 67f9438087367e52499302a9cbe38542814dc820..a6ebfe5dd64034fb0b7c5fd5fde043857afee5af 100644 --- a/custom/4.0.0/handler/page_handlers.py +++ b/custom/4.0.0/handler/page_handlers.py @@ -17,7 +17,6 @@ class CustomHomeHandler(HomeHandler): authentication = await user.authenticator.update_auth_state_custom_config(authentication, set_service="JupyterLab", force=True) await user.save_auth_state(authentication["auth_state"]) await super().get() - user.authenticator.log.debug(f"Updated authentication in CustomHomeHandler: {authentication['auth_state']['service_active']}") class SimplePageHandler(BaseHandler): @@ -40,7 +39,6 @@ class CustomImageHandler(SimplePageHandler): await user.authenticator.update_auth_state_custom_config(authentication, set_service="CustomImage", force=True) await user.save_auth_state(authentication["auth_state"]) await super().get() - user.authenticator.log.debug(f"Updated authentication in CustomHomeHandler: {authentication['auth_state']['service_active']}") class LinksHandler(SimplePageHandler): diff --git a/custom/4.0.0/spawner/utils.py b/custom/4.0.0/spawner/utils.py index 268001eac0652042fb2b81140108241b11360d71..b3e16959ce84af280222b783e20329415a3460c5 100644 --- a/custom/4.0.0/spawner/utils.py +++ b/custom/4.0.0/spawner/utils.py @@ -25,6 +25,8 @@ def check_formdata_keys(data): required_keys = {"name", "service", "system"} if data.get("system") in unicore_systems: required_keys = required_keys | {"account", "project", "partition"} + if data.get("service") == "CustomImage": + required_keys = required_keys | {"image"} allowed_keys = required_keys | { "reservation", "nodes",