use bosh env --json with jq instead of grepping
bosh env doesn't use a table form anymore when the output is piped which broke
the grep. we changed the script to use json output which is more predictable
and easier to parse
@@ -327,9 +327,7 @@ bosh_ip=$(${gobosh} interpolate "${deployment_dir}/stubs/bosh/aws.yml" --path /e
director_uuid=$("${gobosh}" \
-e ${bosh_ip} \
--ca-cert "$("${gobosh}" interpolate "${deployment_dir}/deployments/bosh/creds.yml" --path /director_ssl/ca)" \
- env \
- | grep UUID \
- | cut -f2)
+ env --json | jq -r '.Tables[0].Rows[0].uuid')
cat > stubs/director-uuid.yml <<EOF
# GENERATED: NO TOUCHING
