We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33713ff commit f36d99dCopy full SHA for f36d99d
google/auth/compute_engine/_metadata.py
@@ -54,7 +54,9 @@
54
# Timeout in seconds to wait for the GCE metadata server when detecting the
55
# GCE environment.
56
try:
57
- _METADATA_DEFAULT_TIMEOUT = int(os.getenv(environment_vars.GCE_METADATA_TIMEOUT, 3))
+ _METADATA_DEFAULT_TIMEOUT = int(
58
+ os.getenv(environment_vars.GCE_METADATA_TIMEOUT, "3")
59
+ )
60
except ValueError: # pragma: NO COVER
61
_METADATA_DEFAULT_TIMEOUT = 3
62
0 commit comments