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

Signed-off-by: Jan Fiedler <jan.fiedler@kineo.ai>
  • Loading branch information
fiedlerNr9 authored and hhcs9527 committed Sep 9, 2023
1 parent 553820e commit 0fc03c1
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 0fc03c1

Please sign in to comment.