From e9ae4e2e6bc1f562e63118e4a484fddea920e3f0 Mon Sep 17 00:00:00 2001 From: Mohammad Alisafaee Date: Mon, 8 Jul 2024 16:07:04 +0200 Subject: [PATCH] fix --- renku_notebooks/api/notebooks.py | 2 +- renku_notebooks/api/schemas/cloud_storage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/renku_notebooks/api/notebooks.py b/renku_notebooks/api/notebooks.py index cc20e9c1..82722651 100644 --- a/renku_notebooks/api/notebooks.py +++ b/renku_notebooks/api/notebooks.py @@ -487,7 +487,7 @@ def _on_error(error_msg): request_data = { "name": f"{server_name}-saved-storage-secrets", "namespace": server.k8s_client.preferred_namespace, - "secret_ids": saved_storage_secret_ids, + "secret_ids": list(saved_storage_secret_ids), "owner_references": [owner_reference], "keys_property": "id", } diff --git a/renku_notebooks/api/schemas/cloud_storage.py b/renku_notebooks/api/schemas/cloud_storage.py index 5b03ae34..ac9db668 100644 --- a/renku_notebooks/api/schemas/cloud_storage.py +++ b/renku_notebooks/api/schemas/cloud_storage.py @@ -21,7 +21,7 @@ class Meta: source_path: Optional[str] = fields.Str() target_path: Optional[str] = fields.Str() configuration: Optional[dict[str, Any]] = fields.Dict( - keys=fields.Str(), values=fields.Raw(), load_default=None, allow_none=True + keys=fields.Str(), values=fields.Raw(), load_default=dict, allow_none=True ) storage_id: Optional[str] = fields.Str(load_default=None, allow_none=True) readonly: bool = fields.Bool(load_default=True, allow_none=False)