Skip to content

Commit

Permalink
BugFix: Fix remote log in azure storage blob displays in one line (#1…
Browse files Browse the repository at this point in the history
…4313)

* Fix wasb_task_handler.py for reading remote log on blog with one line

* Fix wasb_task_handler.py for reading remote log on blog with one line

* Fix wasb_task_handler.py for reading remote log on blog with one line

* modify wasb readall() to content_as_text
  • Loading branch information
heeroyuy925 authored Feb 25, 2021
1 parent f763b7c commit 5bfa0f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/microsoft/azure/hooks/wasb.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def read_file(self, container_name: str, blob_name: str, **kwargs):
:param kwargs: Optional keyword arguments that `BlobClient.download_blob` takes.
:type kwargs: object
"""
return self.download(container_name, blob_name, **kwargs).readall()
return self.download(container_name, blob_name, **kwargs).content_as_text()

def upload(
self,
Expand Down

0 comments on commit 5bfa0f1

Please sign in to comment.