From ed58d024ca79966e895151cb870aafbb59636cb3 Mon Sep 17 00:00:00 2001 From: Satnam Singh Date: Tue, 21 Oct 2014 12:18:42 -0700 Subject: [PATCH] Check to see if FLUENTD_GCP is defined before use --- 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 440974fdb9a..f0914bd8a46 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -287,7 +287,7 @@ function kube-up { ) > "${KUBE_TEMP}/master-start.sh" # For logging to GCP we need to enable some minion scopes. - if [ $FLUENTD_GCP == "true" ]; then + if [ -n "$FLUENTD_GCP" ] && [ "$FLUENTD_GCP" = "true" ]; then MINION_SCOPES="${MINION_SCOPES}, https://www.googleapis.com/auth/logging.write" fi