Skip to content

Commit

Permalink
Merge pull request #33039 from colhom/fix-bad-var-name-gce
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

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

\cc @quinton-hoole @madhusudancs 

fixes #32997
  • Loading branch information
Kubernetes Submit Queue committed Sep 21, 2016
2 parents 735fca1 + acd7f50 commit 01dd125
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cluster/gce/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01dd125

Please sign in to comment.