We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbafe1e commit f81cccbCopy full SHA for f81cccb
nix/workbench/topology/topology.jq
@@ -1,6 +1,7 @@
1
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
+ # DON'T ASSUME NODES ARE ORDERED INSIDE THE GLOBAL TOPOLOGY FILE!!!!!!!!!!!!
+ ($topo.coreNodes | map(select(.nodeId == $i)) | .[0] | .producers) as $producers
4
+ | ($producers | map(ltrimstr("node-") | fromjson)) as $prod_indices
5
| { Producers:
6
( $prod_indices
7
| map
0 commit comments