mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
azureblob: fix crash on startup
This was introduced by accidental code deletion in
08b9ede217
azureblob: add support for managed identities
This commit is contained in:
parent
35da38e93f
commit
cb97c2b0d3
@ -648,6 +648,11 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "Failed to parse credentials")
|
||||
}
|
||||
|
||||
u, err = url.Parse(fmt.Sprintf("https://%s.%s", opt.Account, opt.Endpoint))
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to make azure storage url from account and endpoint")
|
||||
}
|
||||
pipeline := f.newPipeline(credential, azblob.PipelineOptions{Retry: azblob.RetryOptions{TryTimeout: maxTryTimeout}})
|
||||
serviceURL = azblob.NewServiceURL(*u, pipeline)
|
||||
case opt.SASURL != "":
|
||||
|
Loading…
Reference in New Issue
Block a user