Merge pull request #45 from secondbit/master

Update metadata server URL to be a FQDN.
This commit is contained in:
Burcu Dogan 2014-10-07 16:21:44 -07:00
commit 7e2b7b4a79
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func (c *ComputeEngineConfig) FetchToken(existing *oauth2.Token) (token *oauth2.
if c.account != "" { if c.account != "" {
account = c.account account = c.account
} }
u := "http://metadata/computeMetadata/v1/instance/service-accounts/" + account + "/token" u := "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/" + account + "/token"
req, err := http.NewRequest("GET", u, nil) req, err := http.NewRequest("GET", u, nil)
if err != nil { if err != nil {
return return