Skip to content

Commit

Permalink
Fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
judahrand committed Mar 2, 2024
1 parent a02c4a1 commit b9a812d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion google/auth/compute_engine/_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
# Timeout in seconds to wait for the GCE metadata server when detecting the
# GCE environment.
try:
_METADATA_DEFAULT_TIMEOUT = int(os.getenv(environment_vars.GCE_METADATA_TIMEOUT, 3))
_METADATA_DEFAULT_TIMEOUT = int(
os.getenv(environment_vars.GCE_METADATA_TIMEOUT, "3")
)
except ValueError: # pragma: NO COVER
_METADATA_DEFAULT_TIMEOUT = 3

Expand Down

0 comments on commit b9a812d

Please sign in to comment.