mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 23:22:08 +01:00
azureblob: ignore AuthorizationFailure when trying to create a create a container
If we get AuthorizationFailure when trying to create a container, then assume the container has already been created
This commit is contained in:
parent
f746b2fe85
commit
914fbe242c
@ -1222,6 +1222,11 @@ func (f *Fs) makeContainer(ctx context.Context, container string) error {
|
||||
time.Sleep(6 * time.Second) // default 10 retries will be 60 seconds
|
||||
f.cache.MarkDeleted(container)
|
||||
return true, err
|
||||
case bloberror.AuthorizationFailure:
|
||||
// Assume that the user does not have permission to
|
||||
// create the container and carry on anyway.
|
||||
fs.Debugf(f, "Tried to create container but got %s error - carrying on assuming container exists", storageErr.ErrorCode)
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user