Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/pr/8927' into HEAD
Browse files Browse the repository at this point in the history
* github/pr/8927:
  Resolve merge conflict when cherry picking apache#8925
  • Loading branch information
kennknowles committed Jul 13, 2019
2 parents 8fb436a + 43dd34e commit 63634a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/python/apache_beam/internal/gcp/auth.py
Expand Up @@ -93,7 +93,7 @@ def _refresh(self, http_request):
token_url = ('http://{}/computeMetadata/v1/instance/service-accounts/'
'default/token').format(metadata_root)
req = Request(token_url, headers={'Metadata-Flavor': 'Google'})
token_data = json.loads(urlopen(req).read())
token_data = json.loads(urlopen(req, timeout=60).read())
self.access_token = token_data['access_token']
self.token_expiry = (refresh_time +
datetime.timedelta(seconds=token_data['expires_in']))
Expand Down

0 comments on commit 63634a5

Please sign in to comment.