Created
January 19, 2017 21:57
-
-
Save allomov/8ee50cd7de61fb4ef5d1c3d68cc7c42e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workers_list=$(bosh vms --json | jq '.Tables | .[0].Rows | map(.[0])' | grep worker | tr -d "\",\ ") | |
echo "Recreating following workers: " | |
echo "$workers_list" | |
while read -r worker; do | |
bosh recreate -f "$worker" | |
done <<< "$workers_list" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment