From 695ba2c1595b3248d6ab94ea9e6dc6f68337120a Mon Sep 17 00:00:00 2001 From: Juana De La Cuesta Date: Mon, 12 May 2025 14:53:28 +0200 Subject: [PATCH] Fix the verify alloc script (#25837) * fix: use the raw option on jq to avoid trating the " like a char * Update verify_allocs.sh --- enos/modules/upgrade_client/scripts/verify_allocs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enos/modules/upgrade_client/scripts/verify_allocs.sh b/enos/modules/upgrade_client/scripts/verify_allocs.sh index edaed955c..2fc2bf27c 100755 --- a/enos/modules/upgrade_client/scripts/verify_allocs.sh +++ b/enos/modules/upgrade_client/scripts/verify_allocs.sh @@ -90,7 +90,7 @@ if [ -z "$current_allocs" ]; then error_exit "Failed to read allocs for node: $client_id" fi -IDs=$(echo $ALLOCS | jq '[ .[] | select(.ClientStatus == "running")] | [.[].ID] | join(" ")') +IDs=$(echo $ALLOCS | jq -r '[ .[] | select(.ClientStatus == "running")] | [.[].ID] | join(" ")') IFS=' ' read -r -a INPUT_ARRAY <<< "${IDs[*]}" IFS=' ' read -r -a RUNNING_ARRAY <<< "$current_allocs"