Skip to content

Commit

Permalink
workbench: fix bug that deployed topology files randomly
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaste committed Nov 3, 2023
1 parent fbafe1e commit f81cccb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nix/workbench/topology/topology.jq
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
def loopback_node_topology_from_nixops_topology($topo; $i):
$topo.coreNodes[$i].producers as $producers
| ($producers | map(ltrimstr("node-") | fromjson)) as $prod_indices
# DON'T ASSUME NODES ARE ORDERED INSIDE THE GLOBAL TOPOLOGY FILE!!!!!!!!!!!!
($topo.coreNodes | map(select(.nodeId == $i)) | .[0] | .producers) as $producers
| ($producers | map(ltrimstr("node-") | fromjson)) as $prod_indices
| { Producers:
( $prod_indices
| map
Expand Down

0 comments on commit f81cccb

Please sign in to comment.