Skip to content

Commit

Permalink
Adjust inspection_result message
Browse files Browse the repository at this point in the history
to return just name of storage account instead of url. This also
affects the config and must be considered when deploying the
component and configuring environment variables.
  • Loading branch information
tsundvoll committed Nov 25, 2024
1 parent a5eae7a commit adb701a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/isar/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ def __init__(self) -> None:
UPLOAD_INSPECTIONS_ASYNC: bool = Field(default=False)

# URL to storage account for Azure Blob Storage
BLOB_STORAGE_ACCOUNT_URL: str = Field(
default="https://eqrobotdevstorage.blob.core.windows.net"
)
BLOB_STORAGE_ACCOUNT: str = Field(default="eqrobotdevstorage")

# Name of blob container in Azure Blob Storage [slimm test]
BLOB_CONTAINER: str = Field(default="test")
Expand Down
2 changes: 1 addition & 1 deletion src/isar/storage/blob_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _upload_file(self, path: Path, data: bytes) -> Union[str, dict]:

absolute_inspection_path = {
"source": "blob",
"blob_storage_account_url": settings.BLOB_STORAGE_ACCOUNT_URL,
"storage_account": settings.BLOB_STORAGE_ACCOUNT,
"blob_container": settings.BLOB_CONTAINER,
"blob_name": blob_client.blob_name,
}
Expand Down

0 comments on commit adb701a

Please sign in to comment.