Skip to content

Commit 5560f1f

Browse files
tanmaykmmortenpi
andauthored
Update src/datasets.jl
Co-authored-by: Morten Piibeleht <morten.piibeleht@juliahub.com>
1 parent 15f52d3 commit 5560f1f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/datasets.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -868,13 +868,13 @@ function _write_rclone_config(
868868
access_key_id::AbstractString,
869869
secret_access_key::AbstractString,
870870
session_token::AbstractString,
871-
provider::AbstractString="AWS",
872-
endpoint::AbstractString="",
871+
vendor::AbstractString,
872+
endpoint::AbstractString,
873873
)
874-
if lowercase(provider) == "aws"
875-
provider = "AWS"
876-
elseif lowercase(provider) == "minio"
877-
provider = "Minio"
874+
provider = if vendor == "aws"
875+
"AWS"
876+
elseif provider == "minio"
877+
"Minio"
878878
else
879879
throw(JuliaHubError("Unknown storage backend $(provider)"))
880880
end

0 commit comments

Comments
 (0)