From c348b30f62da24ec6367d27e6908dc100f2228bb Mon Sep 17 00:00:00 2001 From: Eric Tune Date: Wed, 11 Feb 2015 14:32:41 -0800 Subject: [PATCH] Update util.sh --- 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 a567b016cd5..32af6c9b948 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -199,7 +199,7 @@ function detect-master () { # KUBE_PASSWORD function get-password { # go template to extract the auth-path of the current-context user - local template='{{with $ctx := index . "current-context"}}{{$user := index . "contexts" $ctx "user"}}{{index . "users" $user "auth-path"}}{{end}' + local template='{{with $ctx := index . "current-context"}}{{$user := index . "contexts" $ctx "user"}}{{index . "users" $user "auth-path"}}{{end}}' local file=$("${KUBE_ROOT}/cluster/kubectl.sh" config view -o template --template="${template}") if [[ ! -z "$file" && -r "$file" ]]; then KUBE_USER=$(cat "$file" | python -c 'import json,sys;print json.load(sys.stdin)["User"]')