Apache Airflow Provider(s)
microsoft-azure
Versions of Apache Airflow Providers
apache-airflow-providers-microsoft-azure==3.1.1
Apache Airflow version
2.1.2
Operating System
OSX
Deployment
Docker-Compose
Deployment details
No response
What happened
_get_blob_client method in the wasb hook is trying to create a container
What you expected to happen
I expect to get a container client of an existing container
How to reproduce
No response
Anything else
I believe the fix is minor, e.g.
def _get_blob_client(self, container_name: str, blob_name: str) -> BlobClient:
"""
Instantiates a blob client
:param container_name: The name of the blob container
:type container_name: str
:param blob_name: The name of the blob. This needs not be existing
:type blob_name: str
"""
container_client = self.create_container(container_name)
return container_client.get_blob_client(blob_name)
should be changed to
def _get_blob_client(self, container_name: str, blob_name: str) -> BlobClient:
"""
Instantiates a blob client
:param container_name: The name of the blob container
:type container_name: str
:param blob_name: The name of the blob. This needs not be existing
:type blob_name: str
"""
container_client = self._get_container_client(container_name)
return container_client.get_blob_client(blob_name)
Are you willing to submit PR?
Code of Conduct
Apache Airflow Provider(s)
microsoft-azure
Versions of Apache Airflow Providers
apache-airflow-providers-microsoft-azure==3.1.1
Apache Airflow version
2.1.2
Operating System
OSX
Deployment
Docker-Compose
Deployment details
No response
What happened
_get_blob_clientmethod in the wasb hook is trying to create a containerWhat you expected to happen
I expect to get a container client of an existing container
How to reproduce
No response
Anything else
I believe the fix is minor, e.g.
should be changed to
Are you willing to submit PR?
Code of Conduct