mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Fix the verify allocs, missing echo (#25816)
* fix: typo * fix: correct the script for unbound var * fix: typo
This commit is contained in:
committed by
GitHub
parent
42d4067d55
commit
f68203549b
@@ -90,7 +90,7 @@ if [ -z "$current_allocs" ]; then
|
||||
error_exit "Failed to read allocs for node: $client_id"
|
||||
fi
|
||||
|
||||
IDs=$($ALLOCS |jq '[ .[] | select(.ClientStatus == \"running\")] | [.[].ID] | join(" ")')
|
||||
IDs=$(echo $ALLOCS | jq '[ .[] | select(.ClientStatus == \"running\")] | [.[].ID] | join(" ")')
|
||||
|
||||
IFS=' ' read -r -a INPUT_ARRAY <<< "${IDs[*]}"
|
||||
IFS=' ' read -r -a RUNNING_ARRAY <<< "$current_allocs"
|
||||
|
||||
Reference in New Issue
Block a user