config: make listing of remotes more consistent

This commit is contained in:
albertony 2023-11-04 02:48:42 +01:00 committed by Nick Craig-Wood
parent 8d2907d8f5
commit e4749cf0d0
4 changed files with 66 additions and 17 deletions

View file

@ -850,8 +850,8 @@ func (r *run) encryptRemoteIfNeeded(t *testing.T, remote string) string {
func (r *run) newCacheFs(t *testing.T, remote, id string, needRemote, purge bool, flags map[string]string) (fs.Fs, *cache.Persistent) {
fstest.Initialise()
remoteExists := false
for _, s := range config.FileSections() {
if s == remote {
for _, s := range config.GetRemotes() {
if s.Name == remote {
remoteExists = true
}
}