Skip to content

Commit

Permalink
squashme: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed Oct 23, 2024
1 parent ed2325a commit df31b67
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions components/renku_data_services/notebooks/blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,12 @@ async def _handler(
)
if csr.target_path is not None and not PurePosixPath(csr.target_path).is_absolute():
csr.target_path = (work_dir / csr.target_path).as_posix()
if csr_id in dcs_secrets and csr.configuration is not None:
raise errors.ValidationError(
message=f"Overriding the storage configuration for storage with ID {csr_id} "
"is not allowed because the storage has an associated saved secret.",
)
# TODO: The UI always does this check if it is acceptable/safe
# if csr_id in dcs_secrets and csr.configuration is not None:
# raise errors.ValidationError(
# message=f"Overriding the storage configuration for storage with ID {csr_id} "
# "is not allowed because the storage has an associated saved secret.",
# )
dcs[csr_id] = dcs[csr_id].with_override(csr)
repositories = [Repository(url=i) for i in project.repositories]
secrets_to_create: list[V1Secret] = []
Expand Down

0 comments on commit df31b67

Please sign in to comment.