X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/689901263ebfdd996da3711236615038e6245db3..514fb685c9d835441e0911d9b9499952b6787095:/lib/controller/fed_collections.go diff --git a/lib/controller/fed_collections.go b/lib/controller/fed_collections.go index 07daf2f90e..b7b1e64483 100644 --- a/lib/controller/fed_collections.go +++ b/lib/controller/fed_collections.go @@ -232,6 +232,10 @@ func fetchRemoteCollectionByPDH( // No need to query local cluster again continue } + if remoteID == "*" { + // This isn't a real remote cluster: it just sets defaults for unlisted remotes. + continue + } wg.Add(1) go func(remote string) { @@ -293,10 +297,8 @@ func fetchRemoteCollectionByPDH( var errors []string for len(errorChan) > 0 { err := <-errorChan - if httperr, ok := err.(HTTPError); ok { - if httperr.Code != http.StatusNotFound { - errorCode = http.StatusBadGateway - } + if httperr, ok := err.(HTTPError); !ok || httperr.Code != http.StatusNotFound { + errorCode = http.StatusBadGateway } errors = append(errors, err.Error()) }