Skip to content

Commit f81cccb

Browse files
committed
workbench: fix bug that deployed topology files randomly
1 parent fbafe1e commit f81cccb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nix/workbench/topology/topology.jq

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
def loopback_node_topology_from_nixops_topology($topo; $i):
2-
$topo.coreNodes[$i].producers as $producers
3-
| ($producers | map(ltrimstr("node-") | fromjson)) as $prod_indices
2+
# DON'T ASSUME NODES ARE ORDERED INSIDE THE GLOBAL TOPOLOGY FILE!!!!!!!!!!!!
3+
($topo.coreNodes | map(select(.nodeId == $i)) | .[0] | .producers) as $producers
4+
| ($producers | map(ltrimstr("node-") | fromjson)) as $prod_indices
45
| { Producers:
56
( $prod_indices
67
| map

0 commit comments

Comments
 (0)