Merge pull request #33039 from colhom/fix-bad-var-name-gce

Automatic merge from submit-queue

gce/util: $replica-pd --> $replica_pd

\cc @quinton-hoole @madhusudancs 

fixes #32997
This commit is contained in:
Kubernetes Submit Queue 2016-09-20 22:22:16 -07:00 committed by GitHub
commit 01dd125b60

View File

@ -1191,13 +1191,13 @@ function kube-down() {
# Delete the master replica pd (possibly leaked by kube-up if master create failed).
# TODO(jszczepkowski): remove also possibly leaked replicas' pds
local -r replica-pd="${REPLICA_NAME:-${MASTER_NAME}}-pd"
if gcloud compute disks describe "${replica-pd}" --zone "${ZONE}" --project "${PROJECT}" &>/dev/null; then
local -r replica_pd="${REPLICA_NAME:-${MASTER_NAME}}-pd"
if gcloud compute disks describe "${replica_pd}" --zone "${ZONE}" --project "${PROJECT}" &>/dev/null; then
gcloud compute disks delete \
--project "${PROJECT}" \
--quiet \
--zone "${ZONE}" \
"${replica-pd}"
"${replica_pd}"
fi
# Delete disk for cluster registry if enabled