From f4b33796a9456a23a02b121b0ef2779c77af3ed7 Mon Sep 17 00:00:00 2001 From: Cameron Stokes Date: Wed, 10 Jan 2024 16:39:33 -0800 Subject: [PATCH] terraform: fix github routes output --- .../tailscale-advertise-routes/scripts/get-routes-github.tftpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/internal-modules/tailscale-advertise-routes/scripts/get-routes-github.tftpl b/terraform/internal-modules/tailscale-advertise-routes/scripts/get-routes-github.tftpl index 16f0206..b8498ab 100644 --- a/terraform/internal-modules/tailscale-advertise-routes/scripts/get-routes-github.tftpl +++ b/terraform/internal-modules/tailscale-advertise-routes/scripts/get-routes-github.tftpl @@ -22,7 +22,7 @@ JSON_FILE=routes-input-github.json curl -s 'https://api.github.com/meta' > $JSON_FILE %{ for s in tailscale_advertise_github_service_names ~} -jq -r '.${s}' $JSON_FILE >> $OUTPUT_FILE_TMP +jq -r '.${s}[]' $JSON_FILE >> $OUTPUT_FILE_TMP %{ endfor ~} cat $OUTPUT_FILE_TMP | sort | uniq > $OUTPUT_FILE