From dc48974a49b18f720ca9157e56d5d7b0393424bd Mon Sep 17 00:00:00 2001 From: Mohammad Alisafaee Date: Mon, 9 Dec 2024 13:30:51 +0100 Subject: [PATCH] fix: consider storage config passed in when launching sessions Moving https://github.com/SwissDataScienceCenter/renku-notebooks/pull/1912 from ntoebooks repo. --- .../renku_data_services/notebooks/api/schemas/cloud_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/renku_data_services/notebooks/api/schemas/cloud_storage.py b/components/renku_data_services/notebooks/api/schemas/cloud_storage.py index f4c561442..5ad4b68ec 100644 --- a/components/renku_data_services/notebooks/api/schemas/cloud_storage.py +++ b/components/renku_data_services/notebooks/api/schemas/cloud_storage.py @@ -94,7 +94,7 @@ async def storage_from_schema( ) = await config.storage_validator.get_storage_by_id( user, internal_gitlab_user, project_id, data["storage_id"] ) - configuration = {**configuration, **(configuration or {})} + configuration = {**configuration, **(data.get("configuration", {}))} readonly = readonly else: source_path = data["source_path"]