Skip to content

Commit 1ecaaf3

Browse files
authored
FIX(FilterNodes): temporary execluding node 11 (#3856)
1 parent 5cdf91e commit 1ecaaf3

File tree

1 file changed

+4
-0
lines changed
  • packages/grid_client/src/primitives

1 file changed

+4
-0
lines changed

packages/grid_client/src/primitives/nodes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ class Nodes {
372372
async filterNodes(options: FilterOptions = {}, url = ""): Promise<NodeInfo[]> {
373373
let nodes: NodeInfo[] = [];
374374
url = url || this.proxyURL;
375+
/*
376+
this is tmp solution to exclude node 11 on dev net only and should be removed when the issue is fixed; tracked in https://github.com/threefoldtech/tfgrid-sdk-ts/issues/3855
377+
*/
378+
if (url.includes("dev")) options.nodeExclude = options.nodeExclude ? [...options.nodeExclude, 11] : [11];
375379
options.features = this.getFeaturesFromFilters(options);
376380
const query = this.getNodeUrlQuery(options);
377381
nodes = await send("get", urlJoin(url, `/nodes?${query}`), "", {});

0 commit comments

Comments
 (0)