Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
catch abfs protocol in data_persistence.py/get_filesystem and set ano…
Browse files Browse the repository at this point in the history
…n to False (flyteorg#1813)

Signed-off-by: Jan Fiedler <[email protected]>
Signed-off-by: Future Outlier <[email protected]>
  • Loading branch information
fiedlerNr9 authored and Future Outlier committed Oct 3, 2023
1 parent e6052de commit 664ca67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flytekit/core/data_persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def get_filesystem(
if anonymous:
kwargs["token"] = _ANON
return fsspec.filesystem(protocol, **kwargs) # type: ignore
elif protocol == "abfs":
kwargs["anon"] = False
return fsspec.filesystem(protocol, **kwargs) # type: ignore

# Preserve old behavior of returning None for file systems that don't have an explicit anonymous option.
if anonymous:
Expand Down

0 comments on commit 664ca67

Please sign in to comment.