Skip to content

Commit

Permalink
Merge pull request #1423 from SamirS97/fix_azure_file_path
Browse files Browse the repository at this point in the history
fix file path when uploading to Azure Blob Storage
  • Loading branch information
ellakz authored Feb 25, 2024
2 parents b403f3a + d5b7dc9 commit a41a4e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions elementary/clients/azure/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from elementary.config.config import Config
from elementary.tracking.tracking_interface import Tracking
from elementary.utils import bucket_path
from elementary.utils.log import get_logger

logger = get_logger(__name__)
Expand All @@ -29,7 +28,7 @@ def send_report(
self, local_html_file_path: str, remote_bucket_file_path: Optional[str] = None
) -> Tuple[bool, Optional[str]]:
report_filename = (
bucket_path.basename(remote_bucket_file_path)
remote_bucket_file_path
if remote_bucket_file_path
else path.basename(local_html_file_path)
)
Expand Down

0 comments on commit a41a4e0

Please sign in to comment.