Skip to content

Commit

Permalink
FIX(FilterNodes): temporary execluding node 11 (#3856)
Browse files Browse the repository at this point in the history
  • Loading branch information
0oM4R authored Feb 2, 2025
1 parent 5cdf91e commit 1ecaaf3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/grid_client/src/primitives/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ class Nodes {
async filterNodes(options: FilterOptions = {}, url = ""): Promise<NodeInfo[]> {
let nodes: NodeInfo[] = [];
url = url || this.proxyURL;
/*
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
*/
if (url.includes("dev")) options.nodeExclude = options.nodeExclude ? [...options.nodeExclude, 11] : [11];
options.features = this.getFeaturesFromFilters(options);
const query = this.getNodeUrlQuery(options);
nodes = await send("get", urlJoin(url, `/nodes?${query}`), "", {});
Expand Down

0 comments on commit 1ecaaf3

Please sign in to comment.