Skip to content

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 (#1813)

Signed-off-by: Jan Fiedler <[email protected]>
Signed-off-by: Jeev B <[email protected]>
  • Loading branch information
fiedlerNr9 authored and jeevb committed Sep 20, 2023
1 parent 112f740 commit 40a789f
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 40a789f

Please sign in to comment.