Skip to content

Commit b53d23e

Browse files
committed
squashme: minor fix
1 parent 9f501ac commit b53d23e

File tree

1 file changed

+2
-2
lines changed
  • components/renku_data_services/data_connectors

1 file changed

+2
-2
lines changed

components/renku_data_services/data_connectors/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ async def validate_unsaved_global_data_connector(
182182

183183
# Check that we can list the files in the DOI
184184
connection_result = await validator.test_connection(
185-
configuration=data_connector.storage.configuration, source_path="/"
185+
configuration=data_connector.storage.configuration, source_path=data_connector.storage.source_path or "/"
186186
)
187187
if not connection_result.success:
188188
raise errors.ValidationError(
@@ -231,7 +231,7 @@ async def validate_unsaved_global_data_connector(
231231
storage = models.CloudStorageCore(
232232
storage_type=data_connector.storage.storage_type,
233233
configuration=data_connector.storage.configuration,
234-
source_path="/",
234+
source_path=data_connector.storage.source_path,
235235
target_path=target_path,
236236
readonly=data_connector.storage.readonly,
237237
)

0 commit comments

Comments
 (0)