Skip to content

Commit

Permalink
gce/util: $replica-pd --> $replica_pd
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Hom authored and ixdy committed Oct 28, 2016
1 parent d17b371 commit 95f8fc0
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 @@ -1178,13 +1178,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 95f8fc0

Please sign in to comment.