fix(xo-server#getAllRemotesInfo): ignore disabled remotes

This commit is contained in:
badrAZ 2020-05-11 17:49:58 +02:00
parent 1ad067309d
commit eb2f429964

View File

@ -113,6 +113,10 @@ export default class {
async getAllRemotesInfo() {
const remotesInfo = this._remotesInfo
await asyncMap(this._remotes.get(), async remote => {
if (!remote.enabled) {
return
}
const promise =
remote.proxy !== undefined
? this._xo.callProxyMethod(remote.proxy, 'remote.getInfo', {