Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Add a timeout for GCE detection. #101

Merged
merged 1 commit into from
Dec 19, 2014
Merged

Conversation

craigcitro
Copy link
Contributor

This is a temporary workaround for #93, though may end up being the final fix.

I did some test cleanup while I was here, switching to mock.

PTAL @dhermes

@@ -930,12 +931,22 @@ def _detect_gce_environment(urlopen=None):
Compute Engine.
"""
urlopen = urlopen or urllib.request.urlopen

# Note: the explicit `timeout` below is a potentially-short-term

This comment was marked as spam.

This comment was marked as spam.

This is a temporary workaround for googleapis#93, though may end up being the final fix.

I did some test cleanup while I was here, switching to `mock`.
@craigcitro
Copy link
Contributor Author

k, cleaned up and merging.

craigcitro added a commit that referenced this pull request Dec 19, 2014
Add a timeout for GCE detection.
@craigcitro craigcitro merged commit 5f053b6 into googleapis:master Dec 19, 2014
@dhermes
Copy link
Contributor

dhermes commented Dec 20, 2014

@craigcitro Are you going to cut a release from this?

@craigcitro
Copy link
Contributor Author

lemme get the other one in and i will.

@craigcitro craigcitro deleted the timeout branch December 20, 2014 18:18
@craigcitro
Copy link
Contributor Author

1.4.5 is out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants