File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed
Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change 22
33set -euo pipefail
44script_dir=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
5+ source " ${script_dir} /vars.source.sh"
56source " ${script_dir} /common.sh"
67
78function get_autoscaler_deployments(){
8- bosh deployments --json | jq -r ' .Tables[0].Rows[] | select(.release_s | contains("app-autoscaler/")) | .name'
9+ bosh deployments --json | jq -r ' .Tables[0].Rows[] | select(.release_s | contains("app-autoscaler/")) | .name'
910}
1011
1112function main(){
12- bosh_login
13- cf_login
14- step " Deployments to cleanup: $( get_autoscaler_deployments) "
15- while IFS=' ' read -r deployment; do
16- unset_vars
17- export DEPLOYMENT_NAME=" ${deployment} "
18- source " ${script_dir} /vars.source.sh"
13+ bosh_login " ${BBL_STATE_PATH} "
14+ cf_login
15+ step " Deployments to cleanup: $( get_autoscaler_deployments) "
16+ while IFS=' ' read -r deployment
17+ do
18+ unset_vars
19+ export DEPLOYMENT_NAME=" ${deployment} "
20+ source " ${script_dir} /vars.source.sh"
1921
20- cleanup_acceptance_run
21- cleanup_service_broker
22- cleanup_bosh_deployment
23- cleanup_credhub
24- done < <( get_autoscaler_deployments)
22+ cleanup_acceptance_run
23+ cleanup_service_broker
24+ cleanup_bosh_deployment
25+ cleanup_credhub
26+ done < <( get_autoscaler_deployments)
2527
26- cleanup_bosh
28+ cleanup_bosh
2729}
2830
2931[ " ${BASH_SOURCE[0]} " == " ${0} " ] && main " $@ "
You can’t perform that action at this time.
0 commit comments