Commit 5e9401b7 authored by smut's avatar smut Committed by Commit Bot

Use fully qualified URL to GCE metadata server

The http://metadata shortcut only works on Linux, Windows requires
https://metadata.google.internal.

Bug: 738255
Change-Id: I06b6c34761bbee9912a8cd2a65ab43b3ae230f07
Reviewed-on: https://chromium-review.googlesource.com/611245Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
Commit-Queue: smut <smut@google.com>
parent 0d2dea0a
...@@ -228,8 +228,8 @@ class GceAuthenticator(Authenticator): ...@@ -228,8 +228,8 @@ class GceAuthenticator(Authenticator):
""" """
_INFO_URL = 'http://metadata.google.internal' _INFO_URL = 'http://metadata.google.internal'
_ACQUIRE_URL = ('http://metadata/computeMetadata/v1/instance/' _ACQUIRE_URL = ('%s/computeMetadata/v1/instance/'
'service-accounts/default/token') 'service-accounts/default/token' % _INFO_URL)
_ACQUIRE_HEADERS = {"Metadata-Flavor": "Google"} _ACQUIRE_HEADERS = {"Metadata-Flavor": "Google"}
_cache_is_gce = None _cache_is_gce = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment