Skip to content

Commit

Permalink
Merge pull request #2764 from activeloopai/correct_used_creds
Browse files Browse the repository at this point in the history
fix correct creds used
  • Loading branch information
activesoull committed Feb 7, 2024
2 parents 9fbdcba + 512bf45 commit ed46c4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deeplake/util/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def storage_provider_from_path(
creds_used = "PLATFORM"
if creds == "ENV":
creds_used = "ENV"
elif isinstance(creds, dict) and set(creds.keys()) == {"profile_name"}:
elif isinstance(creds, dict) and (
set(creds.keys()) == {"profile_name"} or not bool(creds)
):
creds_used = "ENV"
elif isinstance(creds, dict) and bool(creds):
creds_used = "DICT"
Expand Down

0 comments on commit ed46c4a

Please sign in to comment.