From 49a9f8b51272e1eee3041d2b08290266a3ee816c Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Fri, 6 Feb 2015 16:35:39 -0800 Subject: [PATCH] Fix kube-up.sh for OS X. --- cluster/gce/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 268b4398bdc..5345ba91ce4 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -815,7 +815,7 @@ function setup-logging-firewall { sleep 10 done - local -r region="${ZONE::-2}" + local -r region="${ZONE:0:${#ZONE}-2}" local -r es_ip=$(gcloud compute forwarding-rules --project "${PROJECT}" describe --region "${region}" elasticsearch-logging | grep IPAddress | awk '{print $2}') local -r kibana_ip=$(gcloud compute forwarding-rules --project "${PROJECT}" describe --region "${region}" kibana-logging | grep IPAddress | awk '{print $2}') echo