From 7ffb9a8fe14e071d077e23aec7315cb6e2883db6 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Mon, 22 Sep 2014 08:37:20 -0700 Subject: [PATCH] Fixing path.join for URL generation. --- google/google.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/google/google.go b/google/google.go index f13af06..6622e9a 100644 --- a/google/google.go +++ b/google/google.go @@ -17,7 +17,6 @@ import ( "encoding/json" "io/ioutil" "net/http" - "path" "time" "github.com/golang/oauth2" @@ -104,7 +103,7 @@ func (c *ComputeEngineConfig) FetchToken(existing *oauth2.Token) (token *oauth2. if c.account != "" { account = c.account } - u := "http://" + path.Join("metadata/computeMetadata/v1/instance/service-accounts", account, "token") + u := "http://metadata/computeMetadata/v1/instance/service-accounts/" + account + "/token" req, err := http.NewRequest("GET", u, nil) if err != nil { return