From ac6759b74b220d3d9ac70cc0a665715405eca338 Mon Sep 17 00:00:00 2001 From: Adrian Duke Date: Tue, 21 Apr 2026 12:37:33 +0100 Subject: [PATCH] simulation: Switch externalAddress config parsing to jq --- simulation/modules/radicle-node/templates/config.cue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulation/modules/radicle-node/templates/config.cue b/simulation/modules/radicle-node/templates/config.cue index bb8dcc1f..fcd32db4 100644 --- a/simulation/modules/radicle-node/templates/config.cue +++ b/simulation/modules/radicle-node/templates/config.cue @@ -57,7 +57,7 @@ import ( # We only do this for seeds and bootstraps to ensure proper routing. configure_external_address() { # Extract the first external address, stripping JSON formatting - EXT_ADDRESS=$(rad config get node.externalAddresses | tr -d '[]" \\n' | cut -d',' -f1) + EXT_ADDRESS=$(rad config | jq -r '.node.externalAddresses[0]') if [ -n "$EXT_ADDRESS" ]; then # Check if it already starts with the pod's hostname to prevent stuttering