Skip to content

Commit

Permalink
Alpha-sort dedicated host state file
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Evich <[email protected]>
  • Loading branch information
cevich committed Nov 15, 2023
1 parent e1613ec commit 7d312ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mac_pw_pool/LaunchInstances.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ done
_I=""
msg " "
msg "Processing all dedicated host and instance states."
# Consuming state file in alpha-order is easier on human eyes
readarray NAME2HOSTID <<<$(json_query "$dh_fmt" "$dh_searchout" | sort)
for name_hostid in "${NAME2HOSTID[@]}"; do
read -r name hostid<<<"$name_hostid"
inststate="$TEMPDIR/${name}_inst.state"
Expand Down

0 comments on commit 7d312ab

Please sign in to comment.