Skip to content

Commit

Permalink
azure: fix inter-bucket copy not reading from the source bucket
Browse files Browse the repository at this point in the history
This was trying to copy from the destination to the destination bucket.
  • Loading branch information
kmichel-aiven committed Apr 13, 2024
1 parent e09948f commit d3c7456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rohmu/object_storage/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _copy_file_from_bucket(
timeout: float = 15.0,
) -> None:
source_path = source_bucket.format_key_for_backend(source_key, remove_slash_prefix=True, trailing_slash=False)
source_client = source_bucket.conn.get_blob_client(self.container_name, source_path)
source_client = source_bucket.conn.get_blob_client(source.container_name, source_path)
source_url = source_client.url

destination_path = self.format_key_for_backend(destination_key, remove_slash_prefix=True, trailing_slash=False)
Expand Down

0 comments on commit d3c7456

Please sign in to comment.