Skip to content

Commit 204aaa4

Browse files
committed
Add forgotten login-parameter;
1 parent 17f9fcc commit 204aaa4

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

ci/autoscaler/scripts/cleanup-autoscaler-deployments.sh

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,30 @@
22

33
set -euo pipefail
44
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
5+
source "${script_dir}/vars.source.sh"
56
source "${script_dir}/common.sh"
67

78
function 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

1112
function 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 "$@"

0 commit comments

Comments
 (0)