Fix the verify alloc script (#25837)

* fix: use the raw option on jq to avoid trating the " like a char

* Update verify_allocs.sh
This commit is contained in:
Juana De La Cuesta
2025-05-12 14:53:28 +02:00
committed by GitHub
parent 120c7bd6e0
commit 695ba2c159

View File

@@ -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"