projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '15599-keepstore-iam-role'
[arvados.git]
/
lib
/
controller
/
fed_collections.go
diff --git
a/lib/controller/fed_collections.go
b/lib/controller/fed_collections.go
index 07daf2f90ef28b3199e856c93134aa5b6975fab3..b7b1e64483f926c2da706541f233482fafeae384 100644
(file)
--- 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
}
// 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) {
wg.Add(1)
go func(remote string) {
@@
-293,10
+297,8
@@
func fetchRemoteCollectionByPDH(
var errors []string
for len(errorChan) > 0 {
err := <-errorChan
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())
}
}
errors = append(errors, err.Error())
}